remove GO111MODULE (#36235)

This commit is contained in:
Serge Zaitsev
2021-06-29 10:01:21 +02:00
committed by GitHub
parent 24aaeb58dc
commit 93cd375ada
4 changed files with 9 additions and 12 deletions

View File

@@ -1,7 +1,8 @@
FROM golang:latest as builder
ADD main.go /
WORKDIR /
RUN GO111MODULE=off CGO_ENABLED=0 go build -o main .
RUN go mod init proxy
RUN CGO_ENABLED=0 go build -o main .
FROM scratch
WORKDIR /