Dockerfile 389 B

12345678910111213
  1. ARG REDIS_VER
  2. FROM redis:${REDIS_VER}
  3. COPY redis.conf /usr/local/etc/redis/redis.conf
  4. CMD ["redis-server", "/usr/local/etc/redis/redis.conf"]
  5. # 设置时区为上海
  6. ENV TZ=Asia/Shanghai
  7. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  8. # Ubuntu软件源选择中国的服务器
  9. RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list