diff --git a/compose.yml b/compose.yml index 190b231c..4c96e285 100644 --- a/compose.yml +++ b/compose.yml @@ -1,6 +1,8 @@ services: app: - build: . + build: + context: . + dockerfile: infra/docker/Dockerfile restart: always networks: - external_network diff --git a/Dockerfile b/infra/docker/Dockerfile similarity index 86% rename from Dockerfile rename to infra/docker/Dockerfile index d4bb2d78..6d2d04eb 100644 --- a/Dockerfile +++ b/infra/docker/Dockerfile @@ -29,15 +29,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ wget RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz \ - && tar -xzf Python-${PYTHON_VERSION}.tgz \ - && cd Python-${PYTHON_VERSION} \ - && ./configure --enable-optimizations \ - && make -j 8 \ - && make altinstall \ - && cd .. \ - && rm -rf Python-${PYTHON_VERSION}.tgz Python-${PYTHON_VERSION} \ - && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ - && rm -rf /var/lib/apt/lists/* + && tar -xzf Python-${PYTHON_VERSION}.tgz \ + && cd Python-${PYTHON_VERSION} \ + && ./configure --enable-optimizations \ + && make -j 8 \ + && make altinstall \ + && cd .. \ + && rm -rf Python-${PYTHON_VERSION}.tgz Python-${PYTHON_VERSION} \ + && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ + && rm -rf /var/lib/apt/lists/* FROM node:${NODE_VERSION} as builder