Extract WebP building into a script

This commit is contained in:
Dmitry Maksyoma
2023-01-26 17:18:17 +13:00
parent 2017ac01f5
commit a5a36d96b6
10 changed files with 32 additions and 63 deletions

View File

@@ -40,15 +40,9 @@ RUN zypper install -ny \
xorg-x11-util-devel \
zlib-devel
# Additions for webp
RUN cd /tmp && wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz
RUN cd /tmp && tar -xzf /tmp/libwebp-*
RUN cd /tmp/libwebp-1.0.2 && \
./configure --enable-static --disable-shared && \
make && make install
ENV SCRIPTS_DIR=/tmp/scripts
COPY builder/scripts $SCRIPTS_DIR
RUN $SCRIPTS_DIR/build-webp
RUN $SCRIPTS_DIR/build-libjpeg-turbo
RUN useradd -u 1000 docker && \