Skip to content

Commit c154b17

Browse files
committed
ci: optimize Dockerfile to reduce image size
1 parent 3e8ead7 commit c154b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base.dockerfile

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

99
# Build with some basic utilities
10-
RUN apt-get update && apt-get install -y \
10+
RUN apt-get update && apt-get install -y --no-install-recommends \
1111
python3-pip \
1212
apt-utils \
1313
vim \
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y \
1717
RUN ln -s /usr/bin/python3 /usr/bin/python
1818

1919
# build with some basic python packages
20-
RUN pip install \
20+
RUN pip install --no-cache-dir \
2121
numpy \
2222
torch \
2323
torchvision \

0 commit comments

Comments
 (0)