upgrade to go 1.20

This commit is contained in:
Rui Lopes 2023-03-11 15:49:54 +00:00
parent a248008590
commit cb258369b8
1 changed files with 2 additions and 2 deletions

View File

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