Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions test/proxy/redis-cluster-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# 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
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"]