From a9585ae3239192ed605cb10bed0426a2885031ed Mon Sep 17 00:00:00 2001 From: Nuno Date: Fri, 29 Dec 2023 14:25:35 +0100 Subject: [PATCH] bump alpine version to 3.19 (#5) * bump alpine version and run as normal user Signed-off-by: rare-magma * revert setup as normal user Signed-off-by: rare-magma --------- Signed-off-by: rare-magma --- Dockerfile | 6 +++--- Dockerfile.build | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2fbad07..aadceb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.17 AS certs -RUN apk add --no-cache ca-certificates && update-ca-certificates +FROM alpine:3.19 AS certs +RUN apk add --no-cache ca-certificates && update-ca-certificates FROM scratch ENTRYPOINT ["/scheduler"] COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -ADD scheduler / \ No newline at end of file +COPY scheduler / \ No newline at end of file diff --git a/Dockerfile.build b/Dockerfile.build index e01be1b..615bb4a 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -6,10 +6,10 @@ RUN go mod download && go mod verify COPY . . RUN CGO_ENABLED=0 go build -v -o /usr/local/bin/app ./cmd/... -FROM alpine:3.17 AS certs -RUN apk add --no-cache ca-certificates && update-ca-certificates +FROM alpine:3.19 AS certs +RUN apk add --no-cache ca-certificates && update-ca-certificates FROM scratch ENTRYPOINT ["/app"] COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -COPY --from=build /usr/local/bin/app /app +COPY --from=build /usr/local/bin/app /app \ No newline at end of file