Skip to content

Commit

Permalink
Merge pull request #211 from redpanda-data/st/docker-image-sync-up
Browse files Browse the repository at this point in the history
build: use the same alpine OS version in Dockerfile, update pkgs on build
  • Loading branch information
sbocinec authored Jun 13, 2023
2 parents e652142 + 3391840 commit 291a8ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################
# Build image
############################################################
FROM golang:1.20-alpine as builder
FROM golang:1.20-alpine3.18 as builder

ARG VERSION
ARG BUILT_AT
Expand All @@ -27,12 +27,13 @@ RUN CGO_ENABLED=0 go build \
############################################################
# Runtime Image
############################################################
FROM alpine:3.17
FROM alpine:3.18
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/bin/kminion /app/kminion
RUN addgroup -S redpanda \
&& adduser -S redpanda -G redpanda \
&& chmod o+rx /app/kminion
&& chmod o+rx /app/kminion \
&& apk upgrade --no-cache
USER redpanda

ENTRYPOINT ["/app/kminion"]

0 comments on commit 291a8ee

Please sign in to comment.