From a08b6e66aeeb3d83be8b4105982c5861a22b3036 Mon Sep 17 00:00:00 2001 From: Nova Kwok Date: Wed, 13 Nov 2024 22:10:30 +0800 Subject: [PATCH] Use newer version of libaom (#363) * Use newer version of libaom * Install curl --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44ce5fcf2..c11c0f758 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,14 @@ RUN cd /build && sed -i "s|.\/pics|${IMG_PATH}|g" config.json \ FROM debian:bookworm-slim -RUN apt update && apt install --no-install-recommends libvips ca-certificates libjemalloc2 libtcmalloc-minimal4 -y && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/archives/* +RUN apt update && apt install --no-install-recommends libvips ca-certificates libjemalloc2 libtcmalloc-minimal4 curl -y && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/archives/* + +# Download and install libam with correct arch +# http://ftp.us.debian.org/debian/pool/main/a/aom/libaom3_3.11.0~rc1-1_amd64.deb +# http://ftp.us.debian.org/debian/pool/main/a/aom/libaom3_3.11.0~rc1-1_arm64.deb +RUN curl -O http://ftp.us.debian.org/debian/pool/main/a/aom/libaom3_3.11.0~rc1-1_$(dpkg --print-architecture).deb && \ + dpkg -i libaom3_3.11.0~rc1-1_$(dpkg --print-architecture).deb && \ + rm libaom3_3.11.0~rc1-1_$(dpkg --print-architecture).deb COPY --from=builder /build/webp-server /usr/bin/webp-server COPY --from=builder /build/config.json /etc/config.json