guichet/Dockerfile

17 lines
374 B
Text
Raw Normal View History

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
2020-02-10 14:26:02 +00:00
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /guichet /guichet
2020-02-10 14:26:02 +00:00
ADD static /static
ADD templates /templates
ENTRYPOINT ["/guichet"]