We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec5772 commit 09de77bCopy full SHA for 09de77b
image/multistage-builds/README.md
@@ -35,7 +35,8 @@ WORKDIR /go/src/github.com/go/helloworld/
35
36
COPY app.go .
37
38
-RUN go get -d -v github.com/go-sql-driver/mysql \
+RUN go mod init helloworld \
39
+ && go get -d -v github.com/go-sql-driver/mysql \
40
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . \
41
&& cp /go/src/github.com/go/helloworld/app /root
42
0 commit comments