Skip to content

Commit 291a8ee

Browse files
authored
Merge pull request #211 from redpanda-data/st/docker-image-sync-up
build: use the same alpine OS version in Dockerfile, update pkgs on build
2 parents e652142 + 3391840 commit 291a8ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
############################################################
22
# Build image
33
############################################################
4-
FROM golang:1.20-alpine as builder
4+
FROM golang:1.20-alpine3.18 as builder
55

66
ARG VERSION
77
ARG BUILT_AT
@@ -27,12 +27,13 @@ RUN CGO_ENABLED=0 go build \
2727
############################################################
2828
# Runtime Image
2929
############################################################
30-
FROM alpine:3.17
30+
FROM alpine:3.18
3131
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3232
COPY --from=builder /app/bin/kminion /app/kminion
3333
RUN addgroup -S redpanda \
3434
&& adduser -S redpanda -G redpanda \
35-
&& chmod o+rx /app/kminion
35+
&& chmod o+rx /app/kminion \
36+
&& apk upgrade --no-cache
3637
USER redpanda
3738

3839
ENTRYPOINT ["/app/kminion"]

0 commit comments

Comments
 (0)