From a16719e53afdb59e4ffdccca663154ed5d3142b3 Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Fri, 29 Dec 2023 06:37:27 +1000 Subject: [PATCH] feat(deps): Build with golang v1.21 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f05e1d2..790ce64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17.5-alpine3.15 as builder +FROM golang:1.21.5-alpine3.19 as builder RUN addgroup -g 2000 gandi && adduser -D -u 2000 -G gandi gandi USER gandi RUN mkdir /home/gandi/build @@ -6,7 +6,7 @@ COPY . /home/gandi/build/ WORKDIR /home/gandi/build RUN CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -o gandidyndns . -FROM alpine:3.15.0 +FROM alpine:3.19 COPY --from=builder /home/gandi/build/gandidyndns /app/ RUN addgroup -g 2000 gandi && adduser -D -u 2000 -G gandi gandi USER gandi