🔖 升级版本.

This commit is contained in:
lijiahang
2024-06-19 11:07:03 +08:00
parent 830622aafb
commit 7747b4e52e
18 changed files with 15 additions and 14 deletions

15
docker/redis/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM redis:6.0.16-alpine
WORKDIR /data
# 系统时区
ARG TZ=Asia/Shanghai
# 添加包
RUN \
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk update && \
apk add tzdata
# 设置时区
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
echo '${TZ}' > /etc/timezone
# redis 配置
COPY ./redis.conf /tmp
RUN cat /tmp/redis.conf > /usr/local/redis.conf