Skip to content

Commit

Permalink
more handholding
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jun 25, 2024
1 parent 6401fb4 commit 2344189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_posts/2024-06-25-stop-the-go-and-docker-madness.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COPY . .
# than 1 binary and even then there is probably a main one
# having cmd/foo also makes `go install github.com/yourname/yourepo@latest`
# not work (or be longer than necessary) when you don't put your main at the top,
# but if not and if you must replace . (current package) by ./cmd/foo/
# but if not and if you must replace . (current package) by ./cmd/foo/ next line:
RUN CGO_ENABLED=0 go build -ldflags="-a -s -w" -o app .
# This is the important bit
FROM scratch
Expand Down

0 comments on commit 2344189

Please sign in to comment.