chore(repo): added docker support

This commit is contained in:
Bruno Wego 2019-06-04 19:45:28 -03:00
parent 507c6f6781
commit 82637fd04b

22
Dockerfile Normal file
View file

@ -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"]