mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-03 19:07:41 +03:00
* 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>
18 lines
309 B
Docker
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"]
|