blob: 8c45ed0d0f1cc155163a43b34a36b921646deb2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM alpine as base
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.2.0
RUN git clone --depth 1 -b v0.2.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 -j$(nproc --all)
RUN make install
WORKDIR $PREFIX/bin
RUN strip slcl
FROM scratch
COPY --from=base /opt/spm/slcl-0.2.0/bin/slcl /opt/spm/slcl-0.2.0/bin/slcl
|