aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 87cb772a363fca11be75d7a320fb1c372ad599eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]