blob: e5ffc5f69d178cb1cd6644ca864fd5341c83641c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM alpine
RUN apk update && apk add \
git \
make \
gcc \
pkgconf \
musl-dev
COPY --from=libcjson:1.7.16 /opt/spm/cjson-1.7.16/ /usr/local/
COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
ARG PREFIX=/opt/spm/slcl-0.1.0
RUN git clone --depth 1 -b v0.1.0 --recursive \
https://gitea.privatedns.org/xavi/slcl
WORKDIR /slcl
RUN mkdir patches
COPY 0001-configure-Add-static-to-default_LDFLAGS.patch patches/
RUN git apply patches/0001-configure-Add-static-to-default_LDFLAGS.patch
RUN ./configure --prefix=$PREFIX
RUN make LDFLAGS="-lcjson -lssl -lm -lcrypto -Llibweb/dynstr -ldynstr \
-Llibweb -lweb -static" -n
RUN make install
WORKDIR $PREFIX/bin
RUN strip slcl
|