Merge branch 'master' of github.com:jedisct1/minisign

* 'master' of github.com:jedisct1/minisign:
  Added docker support (#55)
This commit is contained in:
Frank Denis 2020-06-06 21:27:03 +02:00
commit c4aad021da
3 changed files with 27 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
**
!/share
!/src
!/CMakeLists.txt

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
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"]

View file

@ -53,6 +53,10 @@ Minisign is also available on Ubuntu as a PPA:
$ [sudo] add-apt-repository ppa:dysfunctionalprogramming/minisign
Minisign is also available with docker:
$ docker run -i --rm jedisct1/minisign
Additional tools, libraries and implementations
-----------------------------------------------