This repository has been archived on 2020-01-19. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-07-11 22:15:42 +02:00
|
|
|
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 \
|
2020-01-19 16:24:47 +01:00
|
|
|
&& sed -i 's/^\(CFLAGS= .*\)$/\1 -static/' GNUmakefile.in \
|
2019-07-12 14:07:05 +02:00
|
|
|
&& ./autogen.sh
|
|
|
|
|
|
|
|
COPY matrix-build.sh .
|
|
|
|
|
|
|
|
RUN cd mkp224o \
|
|
|
|
&& /matrix-build.sh
|
2019-07-11 22:15:42 +02:00
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN apk add --no-cache tini
|
|
|
|
|
2019-07-12 14:07:05 +02:00
|
|
|
COPY --from=builder /usr/local/bin /usr/local/bin
|
2019-07-11 22:15:42 +02:00
|
|
|
|
2019-07-12 14:07:05 +02:00
|
|
|
ENTRYPOINT ["tini", "--", "/usr/local/bin/mkp224o-amd64-51-30k"]
|