File size: 330 Bytes
5d574dc |
1 2 3 4 5 6 |
FROM imsyy/splayer:latest
# 註解掉 nginx.conf 中的 user 指令
RUN sed -i 's/^user/#user/' /etc/nginx/nginx.conf
# 修改 pid 檔案位置為 /tmp/nginx.pid
RUN sed -i 's|^pid .*|pid /tmp/nginx.pid;|' /etc/nginx/nginx.conf
RUN mkdir -p /var/cache/nginx/client_temp /var/cache/nginx/proxy_temp && chmod -R 777 /var/cache/nginx |