diff --git a/Dockerfile b/Dockerfile index c1f03a666..73dc6e5c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -FROM --platform=linux/amd64 golang:1.22-alpine AS builder +FROM --platform=linux/amd64 golang:1.22-alpine3.20 AS builder WORKDIR /app -RUN apk -U add ca-certificates -RUN apk update && apk upgrade && apk add pkgconf git bash build-base sudo +RUN apk -U add ca-certificates && apk update && apk upgrade && apk add git COPY . . RUN go build -o transfer . -FROM --platform=linux/amd64 alpine:3.19 AS runner +FROM --platform=linux/amd64 alpine:3.20 AS runner COPY --from=builder /app/transfer / diff --git a/goreleaser.dockerfile b/goreleaser.dockerfile index e1011c0e9..1780f627e 100644 --- a/goreleaser.dockerfile +++ b/goreleaser.dockerfile @@ -1,2 +1,2 @@ -FROM --platform=linux/amd64 alpine:3.16 +FROM --platform=linux/amd64 alpine:3.20 COPY transfer /transfer