Skip to content

Commit 25a83d1

Browse files
committed
ci: optimize Dockerfile to reduce image size
1 parent 2a7e558 commit 25a83d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base-devel.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV SHELL=/bin/bash
88
WORKDIR /app/
99

1010
# Build with some basic utilities
11-
RUN apt-get update && apt-get install -y \
11+
RUN apt-get update && apt-get install -y --no-install-recommends \
1212
python3-pip \
1313
apt-utils \
1414
vim \
@@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y \
1818
RUN ln -s /usr/bin/python3 /usr/bin/python
1919

2020
# build with some basic python packages
21-
RUN pip install \
21+
RUN pip install --no-cache-dir \
2222
numpy \
2323
torch \
2424
torchvision \

0 commit comments

Comments
 (0)