Skip to content

Instantly share code, notes, and snippets.

@icedream
Created August 12, 2020 18:32
Show Gist options
  • Save icedream/aaaa3ab30bc3510bfdf3ca7b8a2dd514 to your computer and use it in GitHub Desktop.
Save icedream/aaaa3ab30bc3510bfdf3ca7b8a2dd514 to your computer and use it in GitHub Desktop.
mkp224o in Docker image
###
# DOWNLOAD
FROM alpine AS source
RUN apk add --no-cache git
RUN git clone --recursive https://github.com/cathugger/mkp224o.git /usr/src/mkp224o
###
# BUILD
FROM alpine AS builder
RUN apk add --no-cache alpine-sdk autoconf libsodium-dev
COPY --from=source /usr/src/mkp224o/ /usr/src/mkp224o/
WORKDIR /usr/src/mkp224o/
RUN ./autogen.sh
#RUN ./configure --enable-amd64-51-30k --prefix=/target/
RUN ./configure --enable-donna
RUN make -j$(nproc)
###
# FINAL IMAGE
FROM alpine
RUN apk add --no-cache libsodium
COPY --from=builder /usr/src/mkp224o/mkp224o /usr/local/bin/
STOPSIGNAL TERM
ENTRYPOINT ["mkp224o"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment