Skip to content

Commit 06f84d5

Browse files
authored
ci: update redis cluster proxy container image (#450)
1 parent f5967a1 commit 06f84d5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# https://hub.docker.com/_/debian
2-
FROM debian:11 as builder
3-
4-
RUN apt-get update
5-
RUN apt-get install -y --no-install-recommends build-essential wget unzip ca-certificates
6-
72
# https://github.com/RedisLabs/redis-cluster-proxy
3+
FROM debian:12 AS builder
84
ARG TAG=1.0-beta2
5+
RUN apt-get update
6+
RUN apt-get install -y --no-install-recommends build-essential wget unzip ca-certificates
97
WORKDIR /tmp
108
RUN wget -O redis-cluster-proxy.zip "https://github.com/RedisLabs/redis-cluster-proxy/archive/refs/tags/${TAG}.zip"
119
RUN unzip redis-cluster-proxy.zip
1210
WORKDIR /tmp/redis-cluster-proxy-${TAG}
1311
RUN make install REDIS_CLUSTER_PROXY_LDFLAGS=-zmuldefs
1412

1513
# https://github.com/GoogleContainerTools/distroless
16-
FROM gcr.io/distroless/cc-debian11:debug
14+
FROM gcr.io/distroless/cc-debian12:nonroot
1715
COPY --from=builder /usr/local/bin/redis-cluster-proxy /usr/local/bin/redis-cluster-proxy
16+
USER nonroot
1817
ENTRYPOINT ["/usr/local/bin/redis-cluster-proxy"]

0 commit comments

Comments
 (0)