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