upgrade to go 1.18

This commit is contained in:
Rui Lopes 2022-06-04 18:01:58 +01:00
parent bf4038a016
commit 86112733ad
1 changed files with 2 additions and 2 deletions

View File

@ -61,10 +61,10 @@ EOF
cat >go.mod <<'EOF'
module example.com/go-hello
go 1.17
go 1.18
EOF
cat >Dockerfile <<'EOF'
FROM golang:1.17-bullseye as builder
FROM golang:1.18-bullseye as builder
WORKDIR /app
COPY go.* main.go ./
RUN CGO_ENABLED=0 go build -ldflags="-s"