Skip to content

Commit

Permalink
purge pip cache (smaller image)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkemgoknar committed Oct 30, 2023
1 parent 7472a76 commit 2910760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
WORKDIR /app
COPY requirements.frozen.txt .
RUN python -m pip install --no-deps -r requirements.frozen.txt
RUN python -m pip install --no-deps -r requirements.frozen.txt \
&& python -m pip cache purge

COPY main.py .

Expand Down
3 changes: 2 additions & 1 deletion server/Dockerfile.cuda118
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \
&& python -m pip cache purge

COPY main.py .

Expand Down

0 comments on commit 2910760

Please sign in to comment.