Skip to content

Commit a27de83

Browse files
committed
Add mount caching to Dockerfiles
1 parent a53343f commit a27de83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/docker/python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# start with the `delphi_python` image
22
FROM delphi_python
33

4-
RUN pip install --no-cache-dir -r repos/delphi/delphi-epidata/requirements.txt -r repos/delphi/delphi-epidata/requirements.dev.txt
4+
RUN --mount=type=cache,target=/root/.cache/pip pip install -r repos/delphi/delphi-epidata/requirements.txt -r repos/delphi/delphi-epidata/requirements.dev.txt

devops/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL org.opencontainers.image.source=https://github.com/cmu-delphi/delphi-epida
99
RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime
1010

1111
COPY requirements.txt /app
12-
RUN pip install --no-cache-dir -r requirements.txt
12+
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
1313

1414
# disable python stdout buffering
1515
ENV PYTHONUNBUFFERED 1

0 commit comments

Comments
 (0)