Skip to content

Commit 8099a7c

Browse files
Update content/guides/go-prometheus-monitoring/containerize.md
Co-authored-by: Craig Osterhout <[email protected]>
1 parent ec830b2 commit 8099a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/go-prometheus-monitoring/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The Dockerfile consists of two stages:
5959

6060
1. **Build stage**: This stage uses the official Golang image as the base and sets the necessary environment variables. It also sets the working directory inside the container, copies the `go.mod` and `go.sum` files for dependency installation, downloads the dependencies, copies the entire application source, and builds the Go binary.
6161

62-
We use the `golang:1.24-alpine` image as the base image for the build stage. The `CGO_ENABLED=0` environment variable disables CGO, which is useful for building static binaries. We also set the `GOOS` and `GOARCH` environment variables to `linux` and `amd64`, respectively, to build the binary for the Linux platform.
62+
You use the `golang:1.24-alpine` image as the base image for the build stage. The `CGO_ENABLED=0` environment variable disables CGO, which is useful for building static binaries. You also set the `GOOS` and `GOARCH` environment variables to `linux` and `amd64`, respectively, to build the binary for the Linux platform.
6363

6464
2. **Final stage**: This stage uses the official Alpine image as the base and copies the compiled binary from the build stage. It also exposes the application's port and runs the application.
6565

0 commit comments

Comments
 (0)