File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# We use a multi-stage build setup.
44# (https://docs.docker.com/build/building/multi-stage/)
55
6- # Stage 1 (to create a "build" image, ~850MB)
6+ # ##############################################################################
7+ # Stage 1 (to create a "build" image, ~850MB) #
8+ # ##############################################################################
79FROM golang:1.20.5 AS builder
810# smoke test to verify if golang is available
911RUN go version
@@ -23,7 +25,9 @@ RUN GOOS=linux GOARCH=amd64 \
2325 -o app cmd/golang-docker-build-tutorial/main.go
2426RUN go test -cover -v ./...
2527
26- # Stage 2 (to create a downsized "container executable", ~5MB)
28+ # ##############################################################################
29+ # Stage 2 (to create a downsized "container executable", ~5MB) #
30+ # ##############################################################################
2731
2832# If you need SSL certificates for HTTPS, replace `FROM SCRATCH` with:
2933#
You can’t perform that action at this time.
0 commit comments