blob: 5ae4495827765c0d4c2fce822a7703fbec3d42ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM alpine
RUN apk update && apk add \
make \
gcc \
musl-dev \
wget
RUN wget https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.gz
RUN tar -xf expat-2.5.0.tar.gz
WORKDIR /expat-2.5.0
ARG PREFIX=/opt/spm/libexpat-2.5.0
RUN ./configure \
--disable-shared \
--prefix=$PREFIX \
CFLAGS='-ffunction-sections -fdata-sections -Os'
RUN make -j$(nproc --all)
RUN make install
|