Skip to content

Commit 0057704

Browse files
heliocastrofviernau
authored andcommitted
chore(deps): Add libmagic as fallback for typecode-libmagic
ScanCode's typecode-libmagic Python library needs a fallback on platforms that do not have the library plugin capability, notably linux/aarch64. The library performs a file check files with data in particular fixed formats, trying to guess the proper file format to perform the necessary operation. In Ubuntu image, libmagic1 system library and file utility are the fallback requirements. Signed-off-by: Helio Chissini de Castro <[email protected]>
1 parent 95db125 commit 0057704

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
4141
coreutils \
4242
curl \
4343
dirmngr \
44+
file \
4445
gcc \
4546
git \
4647
git-lfs \
@@ -50,6 +51,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
5051
libarchive-tools \
5152
libffi-dev \
5253
libgmp-dev \
54+
libmagic1 \
5355
libz-dev \
5456
locales \
5557
lzma \

0 commit comments

Comments
 (0)