Dockerfile: golang 1.20.1 and alpine 3.17 (#6880)

This commit is contained in:
Alex Sharov 2023-02-15 10:30:15 +07:00 committed by GitHub
parent 35c1bc07e7
commit 513c1165fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
# syntax = docker/dockerfile:1.2
FROM docker.io/library/golang:1.19-alpine3.16 AS builder
FROM docker.io/library/golang:1.20-alpine3.17 AS builder
RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++
@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/root/.cache \
make all
FROM docker.io/library/golang:1.19-alpine3.16 AS tools-builder
FROM docker.io/library/golang:1.20-alpine3.17 AS tools-builder
RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++
WORKDIR /app
@ -32,7 +32,7 @@ RUN --mount=type=cache,target=/root/.cache \
--mount=type=cache,target=/go/pkg/mod \
make db-tools
FROM docker.io/library/alpine:3.16
FROM docker.io/library/alpine:3.17
# install required runtime libs, along with some helpers for debugging
RUN apk add --no-cache ca-certificates libstdc++ tzdata