diff options
Diffstat (limited to 'libjpeg')
| -rw-r--r-- | libjpeg/9f/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libjpeg/9f/Dockerfile b/libjpeg/9f/Dockerfile new file mode 100644 index 0000000..19a1f2d --- /dev/null +++ b/libjpeg/9f/Dockerfile @@ -0,0 +1,19 @@ +FROM alpine as base +ARG PREFIX=/usr/local +ARG DESTDIR=/opt/spm/libjpeg-9f +RUN apk update && apk add \ + make \ + gcc \ + pkgconf \ + musl-dev \ + wget +RUN wget https://www.ijg.org/files/jpegsrc.v9f.tar.gz +RUN tar -xf jpegsrc.v9f.tar.gz +WORKDIR /build-libjpeg +RUN CFLAGS='-ffunction-sections -fdata-sections -Os' \ + ../jpeg-9f/configure \ + --enable-shared=no +RUN make -j$(nproc) +RUN make install DESTDIR=$DESTDIR +FROM scratch +COPY --from=base /opt/spm/libjpeg-9f/usr/local/ /opt/spm/libjpeg-9f/ |
