Skip to content

Commit 0df1b8e

Browse files
committed
Update Dockerfile #3967
* Use new style Signed-off-by: Jono Yang <[email protected]>
1 parent 5cc2459 commit 0df1b8e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99

10-
FROM --platform=linux/amd64 python:3.12-slim-bookworm
10+
FROM python:3.12-slim-bookworm
1111

1212
# Python settings: Force unbuffered stdout and stderr (i.e. they are flushed to terminal immediately)
13-
ENV PYTHONUNBUFFERED 1
13+
ENV PYTHONUNBUFFERED=1
1414
# Python settings: do not write pyc files
15-
ENV PYTHONDONTWRITEBYTECODE 1
15+
ENV PYTHONDONTWRITEBYTECODE=1
16+
# Install system_provided scancode-toolkit plugins when running ./configure
17+
ENV SCANCODE_SYSTEM_PROVIDED=1
1618

1719
# OS requirements as per
1820
# https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html
@@ -28,6 +30,9 @@ RUN apt-get update \
2830
libgcrypt20 \
2931
libpopt0 \
3032
libzstd1 \
33+
libarchive-dev \
34+
libmagic-dev \
35+
7zip \
3136
&& apt-get clean \
3237
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3338

0 commit comments

Comments
 (0)