File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 51
51
repository : cmu-delphi/nowcast
52
52
path : repos/delphi/nowcast
53
53
54
+ - name : Cache Python packages
55
+ uses : actions/cache@v2
56
+ with :
57
+ path : ~/.cache/pip # npm cache files are stored in `~/.npm` on Linux/macOS
58
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
59
+ restore-keys : |
60
+ ${{ runner.OS }}-pip-
61
+
54
62
- name : Build docker images
55
63
run : |
56
64
docker build -t delphi_database -f repos/delphi/operations/dev/docker/database/Dockerfile .
Original file line number Diff line number Diff line change 1
1
# start with the `delphi_python` image
2
2
FROM delphi_python
3
3
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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LABEL org.opencontainers.image.source=https://github.com/cmu-delphi/delphi-epida
9
9
RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime
10
10
11
11
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
13
13
14
14
# disable python stdout buffering
15
15
ENV PYTHONUNBUFFERED 1
You can’t perform that action at this time.
0 commit comments