Skip to content

Commit 8843b86

Browse files
authored
Fix Dockerfiles (#168)
Package information was not available in the Dockerfiles because of Copy Order Co-authored-by: stef.graces <[email protected]>
1 parent cfb80c6 commit 8843b86

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

stackl/agent/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ RUN microdnf install -y python38 && \
1818
# Copy only requirements to cache them in docker layer
1919
WORKDIR /app
2020

21-
COPY stackl/agent/poetry.lock stackl/agent/pyproject.toml /app/
22-
21+
COPY stackl/agent/. /app
2322

2423
# Project initialization:
2524
RUN poetry config virtualenvs.create false \
2625
&& poetry install --no-dev --no-interaction --no-ansi
2726

28-
# Creating folders, and files for a project:
29-
COPY stackl/agent/. /app
30-
3127
CMD ["arq", "agent.main.AgentSettings"]

stackl/core/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ RUN chmod +x /start-reload.sh
2626
# Copy only requirements to cache them in docker layer
2727
WORKDIR /app
2828

29-
COPY stackl/core/poetry.lock stackl/core/pyproject.toml /app/
29+
COPY stackl/core/. /app
30+
ENV PYTHONPATH=/app
3031

3132
# Project initialization:
3233
RUN poetry config virtualenvs.create false \
3334
&& poetry install --no-dev --no-interaction --no-ansi
3435

35-
# Creating folders, and files for a project:
36-
COPY stackl/core/. /app
37-
ENV PYTHONPATH=/app
38-
3936
EXPOSE 8080
4037

4138
# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)

0 commit comments

Comments
 (0)