File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -30,23 +30,32 @@ RUN apt-get update \
3030 libgcrypt20 \
3131 libpopt0 \
3232 libzstd1 \
33- libarchive-dev \
34- libmagic-dev \
33+ libarchive13 \
34+ libmagic1 \
35+ libmagic-mgc \
3536 7zip \
36- && apt-get clean \
37- && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
37+ build-essential
3838
3939# Create directory for scancode sources
4040WORKDIR /scancode-toolkit
4141
4242# Copy sources into docker container
4343COPY . /scancode-toolkit
4444
45+ # Use setup-mini.cfg to avoid installing typecode[full] and extractcode[full]
46+ COPY setup-mini.cfg setup.cfg
47+
4548# Initial configuration using ./configure, scancode-reindex-licenses to build
4649# the base license index
4750RUN ./configure \
4851 && ./venv/bin/scancode-reindex-licenses
4952
53+ # Remove unnecessary packages
54+ RUN apt-get purge -y build-essential \
55+ && apt-get autoremove --purge -y \
56+ && apt-get clean \
57+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
58+
5059# Add scancode to path
5160ENV PATH=/scancode-toolkit:$PATH
5261
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ packages =
153153
154154# use 7zip, libarchive, and libmagic provided on the system
155155system_provided =
156- extractcode-7z-system-provided >= 33.0.0
156+ extractcode-7z-system-provided >= 33.0.1
157157 extractcode-libarchive-system-provided >= 33.0.0
158158 typecode-libmagic-system-provided >= 33.0.0
159159
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ packages =
153153
154154# use 7zip, libarchive, and libmagic provided on the system
155155system_provided =
156- extractcode-7z-system-provided >= 33.0.0
156+ extractcode-7z-system-provided >= 33.0.1
157157 extractcode-libarchive-system-provided >= 33.0.0
158158 typecode-libmagic-system-provided >= 33.0.0
159159
You can’t perform that action at this time.
0 commit comments