Skip to content

Commit 0d9cc02

Browse files
Merge pull request #47 from Real-Dev-Squad/fix-deployment-docker-file
fix: deployment issues
1 parent e4d83e1 commit 0d9cc02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

production.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ RUN adduser \
4343
# Leverage a cache mount to /root/.cache/pip to speed up subsequent builds.
4444
# Leverage a bind mount to requirements.txt to avoid having to copy them into
4545
# into this layer.
46-
RUN python -m pip install --no-cache-dir -r requirements.txt
47-
46+
RUN --mount=type=cache,target=/root/.cache/pip \
47+
--mount=type=bind,source=requirements.txt,target=requirements.txt \
48+
python -m pip install -r requirements.txt
49+
4850
# Switch to the non-privileged user to run the application.
4951
USER appuser
5052

0 commit comments

Comments
 (0)