mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-18 02:56:30 +08:00
13 lines
389 B
Docker
13 lines
389 B
Docker
ARG REDIS_VER
|
|
|
|
FROM redis:${REDIS_VER}
|
|
|
|
COPY redis.conf /usr/local/etc/redis/redis.conf
|
|
CMD ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
|
|
|
# 设置时区为上海
|
|
ENV TZ=Asia/Shanghai
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
# Ubuntu软件源选择中国的服务器
|
|
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list |