forked from Deuxfleurs/bagage
Fix the Dockerfile
This commit is contained in:
parent
d38e203370
commit
4982bdd839
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue