2
0

feat: enhance build and setup

This commit is contained in:
zhangsz
2024-12-30 10:12:54 +08:00
parent c43c799ae0
commit 25f17f91bb
22 changed files with 372 additions and 201 deletions

View File

@@ -1,13 +1,11 @@
# 基础镜像
FROM redis
# author
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