10 lines
217 B
Plaintext
10 lines
217 B
Plaintext
# 基础镜像
|
|
FROM redis
|
|
|
|
# 创建目录
|
|
RUN mkdir -p /usr/local/etc/redis
|
|
# 复制conf文件到路径
|
|
COPY ./conf/redis.conf /usr/local/etc/redis/redis.conf
|
|
# 设置数据目录权限
|
|
RUN chown -R redis:redis /data
|