Skip to content

Commit

Permalink
bump alpine version to 3.19 (#5)
Browse files Browse the repository at this point in the history
* bump alpine version and run as normal user

Signed-off-by: rare-magma <rare-magma@posteo.eu>

* revert setup as normal user

Signed-off-by: rare-magma <rare-magma@posteo.eu>

---------

Signed-off-by: rare-magma <rare-magma@posteo.eu>
  • Loading branch information
rare-magma authored Dec 29, 2023
1 parent f7cc467 commit a9585ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 /
COPY scheduler /
6 changes: 3 additions & 3 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a9585ae

Please sign in to comment.