commit 7e10b82beb1ec0d64e375b999cc821041ea7bc17 Author: Simon Bruder Date: Thu Jul 11 20:15:42 2019 +0000 init diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c40433a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +name: default + +steps: + - name: docker + image: plugins/docker + settings: + registry: r.sbruder.de + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: r.sbruder.de/mkp224o diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dcbcd30 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +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"]