From 1f8e01d7eb6c84776c010dad640f0d7f0daac454 Mon Sep 17 00:00:00 2001 From: "stef.graces" Date: Fri, 30 Oct 2020 16:47:37 +0100 Subject: [PATCH] Fix Dockerfiles --- stackl/agent/Dockerfile | 6 +----- stackl/core/Dockerfile | 7 ++----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/stackl/agent/Dockerfile b/stackl/agent/Dockerfile index c41e505d..a2338856 100644 --- a/stackl/agent/Dockerfile +++ b/stackl/agent/Dockerfile @@ -18,14 +18,10 @@ RUN microdnf install -y python38 && \ # Copy only requirements to cache them in docker layer WORKDIR /app -COPY stackl/agent/poetry.lock stackl/agent/pyproject.toml /app/ - +COPY stackl/agent/. /app # Project initialization: RUN poetry config virtualenvs.create false \ && poetry install --no-dev --no-interaction --no-ansi -# Creating folders, and files for a project: -COPY stackl/agent/. /app - CMD ["arq", "agent.main.AgentSettings"] \ No newline at end of file diff --git a/stackl/core/Dockerfile b/stackl/core/Dockerfile index a63e83cc..a5ca56a1 100644 --- a/stackl/core/Dockerfile +++ b/stackl/core/Dockerfile @@ -26,16 +26,13 @@ RUN chmod +x /start-reload.sh # Copy only requirements to cache them in docker layer WORKDIR /app -COPY stackl/core/poetry.lock stackl/core/pyproject.toml /app/ +COPY stackl/core/. /app +ENV PYTHONPATH=/app # Project initialization: RUN poetry config virtualenvs.create false \ && poetry install --no-dev --no-interaction --no-ansi -# Creating folders, and files for a project: -COPY stackl/core/. /app -ENV PYTHONPATH=/app - EXPOSE 8080 # Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)