We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d83e1 commit 0d9cc02Copy full SHA for 0d9cc02
production.Dockerfile
@@ -43,8 +43,10 @@ RUN adduser \
43
# Leverage a cache mount to /root/.cache/pip to speed up subsequent builds.
44
# Leverage a bind mount to requirements.txt to avoid having to copy them into
45
# into this layer.
46
-RUN python -m pip install --no-cache-dir -r requirements.txt
47
-
+RUN --mount=type=cache,target=/root/.cache/pip \
+ --mount=type=bind,source=requirements.txt,target=requirements.txt \
48
+ python -m pip install -r requirements.txt
49
+
50
# Switch to the non-privileged user to run the application.
51
USER appuser
52
0 commit comments