This repository has been archived on 2020-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
mkp224o/Dockerfile

24 lines
491 B
Docker
Raw Normal View History

2019-07-11 22:15:42 +02:00
FROM alpine as builder
RUN apk add --no-cache \
autoconf \
build-base \
git \
libsodium-dev
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"]