guichet/Dockerfile
ADRN 7d8a41ec93
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
proposition de Dockerfile a l'ancienne pour Guichet
2024-06-10 20:29:33 +02:00

16 lines
374 B
Docker

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=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /guichet /guichet
ADD static /static
ADD templates /templates
ENTRYPOINT ["/guichet"]