blob: 19a1f2dd5d4d8bc1125ec5312c165d68d89921d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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/
|