diff options
Diffstat (limited to 'slcl/0.2.0/Dockerfile')
| -rw-r--r-- | slcl/0.2.0/Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/slcl/0.2.0/Dockerfile b/slcl/0.2.0/Dockerfile new file mode 100644 index 0000000..8c45ed0 --- /dev/null +++ b/slcl/0.2.0/Dockerfile @@ -0,0 +1,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 |
