From 4a1320878f6017b626bd7c3c6952818e428154ff Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Fri, 10 Oct 2025 21:10:50 +0900 Subject: [PATCH] ci: update redis cluster proxy container image --- test/proxy/redis-cluster-proxy/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/proxy/redis-cluster-proxy/Dockerfile b/test/proxy/redis-cluster-proxy/Dockerfile index d1b90617..ec3e5cdc 100644 --- a/test/proxy/redis-cluster-proxy/Dockerfile +++ b/test/proxy/redis-cluster-proxy/Dockerfile @@ -1,11 +1,9 @@ # https://hub.docker.com/_/debian -FROM debian:11 as builder - -RUN apt-get update -RUN apt-get install -y --no-install-recommends build-essential wget unzip ca-certificates - # https://github.com/RedisLabs/redis-cluster-proxy +FROM debian:12 AS builder ARG TAG=1.0-beta2 +RUN apt-get update +RUN apt-get install -y --no-install-recommends build-essential wget unzip ca-certificates WORKDIR /tmp RUN wget -O redis-cluster-proxy.zip "https://github.com/RedisLabs/redis-cluster-proxy/archive/refs/tags/${TAG}.zip" RUN unzip redis-cluster-proxy.zip @@ -13,6 +11,7 @@ WORKDIR /tmp/redis-cluster-proxy-${TAG} RUN make install REDIS_CLUSTER_PROXY_LDFLAGS=-zmuldefs # https://github.com/GoogleContainerTools/distroless -FROM gcr.io/distroless/cc-debian11:debug +FROM gcr.io/distroless/cc-debian12:nonroot COPY --from=builder /usr/local/bin/redis-cluster-proxy /usr/local/bin/redis-cluster-proxy +USER nonroot ENTRYPOINT ["/usr/local/bin/redis-cluster-proxy"]