Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
we need 'go mod init first' before 'go get'
  • Loading branch information
trevanlye authored Nov 11, 2024
1 parent 7ec5772 commit 09de77b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion image/multistage-builds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ WORKDIR /go/src/github.com/go/helloworld/
COPY app.go .
RUN go get -d -v github.com/go-sql-driver/mysql \
RUN go mod init helloworld \
&& go get -d -v github.com/go-sql-driver/mysql \
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . \
&& cp /go/src/github.com/go/helloworld/app /root
Expand Down

0 comments on commit 09de77b

Please sign in to comment.