Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: 熊鑫伟 Xinwei Xiong <[email protected]>
  • Loading branch information
cubxxw authored Oct 18, 2024
1 parent ae04840 commit 39e5629
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions compose/production/redis8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM redis:8.0-M01

# 设置时区
ENV TZ=Asia/Shanghai

# 复制自定义配置文件
# COPY ./compose/production/redis/redis.conf /usr/local/etc/redis/redis.conf

# 复制业务相关的初始化脚本或模块(如有)
# COPY your_custom_module.so /usr/local/lib/redis/

# 设置工作目录
WORKDIR /usr/local/etc/redis

# 启动 Redis 时使用自定义配置
CMD ["redis-server", "redis.conf"]

0 comments on commit 39e5629

Please sign in to comment.