Skip to content

Commit 5174a3b

Browse files
authored
Merge pull request #2386 from tiulpin/slim-docker
Make Docker image smaller (1.21GB → 558MB) Signed-off-by: Philippe Ombredanne <[email protected]>
2 parents cce8cbc + d5ab593 commit 5174a3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
# limitations under the License.
2222
#
2323

24-
FROM python:3.6
24+
FROM python:3.6-slim-buster
2525

2626
# Requirements as per https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html
2727
RUN apt-get update \
28-
&& apt-get install -y bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev \
29-
&& rm -rf /var/lib/apt/lists/*
28+
&& apt-get install -y bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libgomp1 \
29+
&& apt-get clean \
30+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3031

3132
# Create directory for scancode sources
3233
RUN mkdir scancode-toolkit

0 commit comments

Comments
 (0)