its / Dockerfile
Shack00's picture
Update Dockerfile
bb0b753 verified
Raw History Blame Contribute Delete
394 Bytes
from ghcr.io/corentinth/it-tools:latest
expose 80
run mkdir -p /var/cache/nginx && chmod 777 /var/cache/nginx
run mkdir -p /var/cache/nginx/client_temp && chmod 777 /var/cache/nginx/client_temp
# 假设你已经有一个基础镜像,例如nginx
FROM nginx:latest
# 使用sed命令替换nginx.conf中的80端口为7860
RUN sed -i 's/listen 80;/listen 7860;/g' /etc/nginx/nginx.conf
user root