diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..59cafd8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM alpine:3.9 as build + +WORKDIR /usr/src/minisign + +RUN apk add --no-cache \ + bash==4.4.19-r1 \ + cmake==3.13.0-r0 \ + make==4.2.1-r2 \ + g++==8.3.0-r0 \ + libsodium-dev==1.0.16-r0 + +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +RUN wget -O - 'https://github.com/jedisct1/minisign/archive/0.8.tar.gz' | tar -xz --strip-components 1 && \ + gcc -static -Os -s -o minisign src/*.c -lsodium + + +FROM scratch + +COPY --from=build /usr/src/minisign/minisign /usr/local/bin/ + +ENTRYPOINT ["/usr/local/bin/minisign"]