Upgrade to golang:1.22 and alpine:3.19

This commit is contained in:
perennial
2024-03-22 17:10:13 +11:00
parent 6007d1aced
commit 9b66873407
+2 -2
View File
@@ -1,5 +1,5 @@
# ------ Builder stage ------
FROM docker.io/golang:1.21 as builder
FROM docker.io/golang:1.22 as builder
WORKDIR /app
COPY go.* ./
@@ -10,7 +10,7 @@ COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -ldflags="-s -w" -o pixivfe
# ------ Final image ------
FROM docker.io/alpine:3.14
FROM docker.io/alpine:3.19
WORKDIR /app
# Create a non-root user `pixivfe` for security purposes and set ownership