From 2d0b883a25992b2eabc7eedf27c74bf40a7ba906 Mon Sep 17 00:00:00 2001 From: KennyLee Date: Tue, 30 Mar 2021 19:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dredis=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis/image-build/latest/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/redis/image-build/latest/Dockerfile b/redis/image-build/latest/Dockerfile index 6267377..a6ded96 100644 --- a/redis/image-build/latest/Dockerfile +++ b/redis/image-build/latest/Dockerfile @@ -10,9 +10,9 @@ RUN apk add --no-cache \ # add tzdata for https://github.com/docker-library/redis/issues/138 tzdata -ENV REDIS_VERSION 6.0.10 -ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-6.0.10.tar.gz -ENV REDIS_DOWNLOAD_SHA 79bbb894f9dceb33ca699ee3ca4a4e1228be7fb5547aeb2f99d921e86c1285bd +ENV REDIS_VERSION 6.2.1 +ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz +ENV REDIS_DOWNLOAD_SHA cd222505012cce20b25682fca931ec93bd21ae92cb4abfe742cf7b76aa907520 RUN set -eux; \ \ @@ -95,8 +95,9 @@ RUN mkdir /data && chown redis:redis /data VOLUME /data WORKDIR /data -COPY docker-entrypoint.sh /usr/local/bin/ -ENTRYPOINT ["docker-entrypoint.sh"] +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x /*.sh +ENTRYPOINT ["/docker-entrypoint.sh"] EXPOSE 6379 CMD ["redis-server"] \ No newline at end of file