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