diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 22:36:01 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 23:03:23 +0100 |
| commit | 70e61a068d27862df5917c7e71cd465641f95893 (patch) | |
| tree | 545cc1c8250e1dea9b75d78e0e717312e275bb42 | |
| parent | e9d849c4ce92c7160ebd7c5e1380fd433610dcb9 (diff) | |
Add libjpeg-10
| -rw-r--r-- | libjpeg/10/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libjpeg/10/Dockerfile b/libjpeg/10/Dockerfile new file mode 100644 index 0000000..29156e9 --- /dev/null +++ b/libjpeg/10/Dockerfile @@ -0,0 +1,19 @@ +FROM alpine as base +ARG PREFIX=/usr/local +ARG DESTDIR=/opt/spm/libjpeg-10 +RUN apk update && apk add \ + make \ + gcc \ + pkgconf \ + musl-dev \ + wget +RUN wget https://www.ijg.org/files/jpegsrc.v10.tar.gz +RUN tar -xf jpegsrc.v10.tar.gz +WORKDIR /build-libjpeg +RUN CFLAGS='-ffunction-sections -fdata-sections -Os' \ + ../jpeg-10/configure \ + --enable-shared=no +RUN make -j$(nproc) +RUN make install DESTDIR=$DESTDIR +FROM scratch +COPY --from=base /opt/spm/libjpeg-10/usr/local/ /opt/spm/libjpeg-10/ |
