mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server: Add required dependencies to Dockerfile
This commit is contained in:
@ -33,6 +33,21 @@ RUN pip3 install --no-cache-dir --disable-pip-version-check \
|
||||
"pillow-avif-plugin~=1.1.0"
|
||||
RUN apk --no-cache del py3-pip
|
||||
|
||||
# build and install mozjpeg
|
||||
RUN apk --no-cache add automake cmake nasm libpng-dev libpng curl
|
||||
RUN curl -fL "https://github.com/mozilla/mozjpeg/archive/refs/tags/v4.1.1.tar.gz" -o mozjpeg.tar.gz
|
||||
RUN tar xzf mozjpeg.tar.gz && cd mozjpeg-* \
|
||||
&& cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DBUILD_SHARED_LIBS=True \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DWITH_JPEG8=1 \
|
||||
-DWITH_TURBOJPEG=1 \
|
||||
-DENABLE_STATIC=0 \
|
||||
&& make install && cd
|
||||
RUN apk --no-cache del automake nasm cmake curl
|
||||
|
||||
COPY ./ /opt/app/
|
||||
RUN rm -rf /opt/app/szurubooru/tests
|
||||
|
||||
|
Reference in New Issue
Block a user