Fix the Dockerfile

This commit is contained in:
Quentin 2021-09-03 10:53:06 +02:00
parent d38e203370
commit 4982bdd839
Signed by: quentin
GPG key ID: A98E9B769E4FF428

View file

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