2
0

feat: enhance docker run env

This commit is contained in:
zhangsz
2024-12-30 12:06:02 +08:00
parent f5723b3106
commit 0207122187
25 changed files with 133 additions and 114 deletions

View File

@@ -4,10 +4,10 @@ FROM redis
MAINTAINER wfc
# 挂载目录
VOLUME /home/wfc/redis
VOLUME /opt/wfc/redis
# 创建目录
RUN mkdir -p /home/wfc/redis
RUN mkdir -p /opt/wfc/redis
# 指定路径
WORKDIR /home/wfc/redis
WORKDIR /opt/wfc/redis
# 复制conf文件到路径
COPY ./conf/redis.conf /home/wfc/redis/redis.conf
COPY ./conf/redis.conf /opt/wfc/redis/redis.conf