Dockerfile 217 B

12345678910111213
  1. # 设置基础镜像为redis
  2. FROM redis:latest
  3. MAINTAINER kindring
  4. VOLUME "/data"
  5. # 复制redis.conf配置文件到 工作目录中
  6. COPY ./redis.conf /etc/redis/redis.conf
  7. CMD redis-server /etc/redis/redis.conf