Simon Bruder
e0d66c904d
All checks were successful
continuous-integration/drone/push Build is passing
27 lines
545 B
Docker
27 lines
545 B
Docker
FROM alpine as builder
|
|
|
|
RUN apk add --no-cache \
|
|
autoconf \
|
|
build-base \
|
|
git \
|
|
libsodium-dev \
|
|
libsodium-static
|
|
|
|
RUN git clone --depth=1 https://github.com/cathugger/mkp224o \
|
|
&& cd mkp224o \
|
|
&& sed -i 's/^\(CFLAGS= .*\)$/\1 -static/' GNUmakefile.in \
|
|
&& ./autogen.sh
|
|
|
|
COPY matrix-build.sh .
|
|
|
|
RUN cd mkp224o \
|
|
&& /matrix-build.sh
|
|
|
|
FROM alpine
|
|
|
|
RUN apk add --no-cache tini
|
|
|
|
COPY --from=builder /usr/local/bin /usr/local/bin
|
|
|
|
ENTRYPOINT ["tini", "--", "/usr/local/bin/mkp224o-amd64-51-30k"]
|