dockerfile 376 B

12345678910111213141516
  1. # 基础镜像
  2. FROM redis
  3. # author
  4. MAINTAINER vctgo
  5. # 设置时区
  6. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  7. # 挂载目录
  8. VOLUME /home/vctgo/redis
  9. # 创建目录
  10. RUN mkdir -p /home/vctgo/redis
  11. # 指定路径
  12. WORKDIR /home/vctgo/redis
  13. # 复制conf文件到路径
  14. COPY ./conf/redis.conf /home/vctgo/redis/redis.conf