Skip to content

Commit

Permalink
Merge pull request #548 from trevanlye/patch-1
Browse files Browse the repository at this point in the history
Add go init
  • Loading branch information
yeasy authored Nov 20, 2024
2 parents e0ff3d3 + 09de77b commit 1b7d941
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 1b7d941

Please sign in to comment.