Simon Bruder
7e10b82beb
All checks were successful
continuous-integration/drone/push Build is passing
25 lines
518 B
Docker
25 lines
518 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 \
|
|
&& ./autogen.sh \
|
|
&& ./configure --enable-donna-sse2 \
|
|
&& sed -i 's/^\(CFLAGS= .*\)$/\1 -static/' Makefile \
|
|
&& make -j 4 \
|
|
&& strip mkp224o
|
|
|
|
FROM alpine
|
|
|
|
RUN apk add --no-cache tini
|
|
|
|
COPY --from=builder /mkp224o/mkp224o .
|
|
|
|
ENTRYPOINT ["tini", "--", "/mkp224o"]
|