🔖 升级版本.
This commit is contained in:
15
docker/redis/Dockerfile
Normal file
15
docker/redis/Dockerfile
Normal 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
|
||||
5
docker/redis/build.sh
Normal file
5
docker/redis/build.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#/bin/bash
|
||||
version=2.0.9
|
||||
docker build -t orion-visor-redis:${version} .
|
||||
docker tag orion-visor-redis:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:${version}
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:${version}
|
||||
1877
docker/redis/redis.conf
Normal file
1877
docker/redis/redis.conf
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user