feat: enhance build and setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user