minisign/Dockerfile
Bruno Wego 4d1f41e5be
Added docker support (#55)
* chore(repo): added docker support

* docs(readme): added docker instruction

* refactor(docker): build from current branch

* fix(docker): remove unnecessary packages

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2020-06-06 21:26:51 +02:00

18 lines
309 B
Docker

FROM alpine:3.9 as build
WORKDIR /usr/src/minisign
RUN apk add --no-cache \
g++==8.3.0-r0 \
libsodium-dev==1.0.16-r0
COPY ./ ./
RUN 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"]