Created
August 12, 2020 18:32
-
-
Save icedream/aaaa3ab30bc3510bfdf3ca7b8a2dd514 to your computer and use it in GitHub Desktop.
mkp224o in Docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# 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