From c8a441d4f84f6da5faf39342607b37e6ab619e18 Mon Sep 17 00:00:00 2001 From: Zoey Date: Fri, 24 May 2024 17:59:25 +0200 Subject: [PATCH] Update Dockerfile Signed-off-by: Zoey --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f1379cd..b23c426 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN apk upgrade --no-cache -a && \ apk add --no-cache ca-certificates git build-base && \ git clone --recursive --branch "$VALKEY_VERSION" https://github.com/valkey-io/valkey /src && \ cd /src && \ + sed -i "s|\(protected_mode.*\)1|\10|g" /src/src/config.c && \ make -j "$(nproc)" LDFLAGS="-s -w -static" CFLAGS="-static" USE_SYSTEMD=no BUILD_TLS=no FROM alpine:3.20.0 @@ -26,6 +27,6 @@ VOLUME /data WORKDIR /data USER redis:redis -ENTRYPOINT ["tini", "--", "valkey-server", "--protected-mode", "no"] +ENTRYPOINT ["tini", "--", "valkey-server"] HEALTHCHECK CMD redis-cli ping EXPOSE 6379/tcp