Skip to content

Commit 09de77b

Browse files
authored
Update README.md
we need 'go mod init first' before 'go get'
1 parent 7ec5772 commit 09de77b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

image/multistage-builds/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ WORKDIR /go/src/github.com/go/helloworld/
3535
3636
COPY app.go .
3737
38-
RUN go get -d -v github.com/go-sql-driver/mysql \
38+
RUN go mod init helloworld \
39+
&& go get -d -v github.com/go-sql-driver/mysql \
3940
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . \
4041
&& cp /go/src/github.com/go/helloworld/app /root
4142

0 commit comments

Comments
 (0)