Browse Source

Fix the Dockerfile

main
Quentin 9 months ago
parent
commit
4982bdd839
Signed by untrusted user: quentin GPG Key ID: A98E9B769E4FF428
  1. 2
      Dockerfile

2
Dockerfile

@ -2,7 +2,7 @@ FROM golang:1.17.0-alpine3.14 as builder
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates
WORKDIR /opt
COPY main.go go.mod go.sum /opt/
COPY *.go go.mod go.sum /opt/
RUN go build .
FROM scratch

Loading…
Cancel
Save