From 0057704a635540e7265dc4da0bf6d16610557cae Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Fri, 29 Sep 2023 13:45:35 +0200 Subject: [PATCH] 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 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0c65743f3c163..6fae5f47f58b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ coreutils \ curl \ dirmngr \ + file \ gcc \ git \ git-lfs \ @@ -50,6 +51,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ libarchive-tools \ libffi-dev \ libgmp-dev \ + libmagic1 \ libz-dev \ locales \ lzma \