diff options
author | ADRN <adrien@luxeylab.net> | 2024-06-10 20:29:33 +0200 |
---|---|---|
committer | ADRN <adrien@luxeylab.net> | 2024-06-10 20:29:33 +0200 |
commit | 7d8a41ec937f2d41790174b366c333ace346f4b0 (patch) | |
tree | 60cf3666fc6fa56f499b47a648eef443f6c115f9 /Dockerfile | |
parent | e7e05ed929c92c2b9d193f8193878c1a8a74c43c (diff) | |
download | guichet-7d8a41ec937f2d41790174b366c333ace346f4b0.tar.gz guichet-7d8a41ec937f2d41790174b366c333ace346f4b0.zip |
proposition de Dockerfile a l'ancienne pour Guichetdocker-build
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,12 +1,16 @@ -FROM alpine:latest as certs +FROM golang:alpine3.20 as builder RUN apk --update add ca-certificates +COPY . . +RUN go get -d -v \ + && CGO_ENABLED=0 GOOS=linux go build -a -v -o /guichet + FROM scratch -COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=builder /guichet /guichet ADD static /static -ADD guichet.static /guichet ADD templates /templates ENTRYPOINT ["/guichet"] |