Download Dockerfile from Shack00/its: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/Shack00/its/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Shack00/its/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Shack00/its/resolve/main/Dockerfile
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 |