Skip to content

Commit 1b7d941

Browse files
authored
Merge pull request #548 from trevanlye/patch-1
Add go init
2 parents e0ff3d3 + 09de77b commit 1b7d941

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)