Skip to content

Commit 841c669

Browse files
committed
fix(docker): Properly cache dependencies
Signed-off-by: provokateurin <[email protected]>
1 parent e54bf3e commit 841c669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ FROM python:3.11-slim-bookworm
22

33
COPY requirements.txt /
44

5+
RUN \
6+
python3 -m pip install -r requirements.txt && rm -rf ~/.cache && rm requirements.txt
7+
58
ADD cs[s] /app/css
69
ADD im[g] /app/img
710
ADD j[s] /app/js
811
ADD l10[n] /app/l10n
912
ADD li[b] /app/lib
1013

11-
RUN \
12-
python3 -m pip install -r requirements.txt && rm -rf ~/.cache && rm requirements.txt
13-
1414
WORKDIR /app/lib
1515
ENTRYPOINT ["python3", "main.py"]

0 commit comments

Comments
 (0)