2024-06-10 18:29:33 +00:00
|
|
|
FROM golang:alpine3.20 as builder
|
2020-02-14 21:38:02 +00:00
|
|
|
RUN apk --update add ca-certificates
|
2024-06-10 18:29:33 +00:00
|
|
|
COPY . .
|
|
|
|
RUN go get -d -v \
|
|
|
|
&& CGO_ENABLED=0 GOOS=linux go build -a -v -o /guichet
|
|
|
|
|
2020-02-14 21:38:02 +00:00
|
|
|
|
2020-02-10 14:26:02 +00:00
|
|
|
FROM scratch
|
|
|
|
|
2024-06-10 18:29:33 +00:00
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
COPY --from=builder /guichet /guichet
|
2020-02-14 21:38:02 +00:00
|
|
|
|
2020-02-10 14:26:02 +00:00
|
|
|
ADD static /static
|
|
|
|
ADD templates /templates
|
|
|
|
|
|
|
|
ENTRYPOINT ["/guichet"]
|