Spaces:
Paused
Paused
Download Dockerfile from Opera8/text-generation-gpt2: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/Opera8/text-generation-gpt2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Opera8/text-generation-gpt2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Opera8/text-generation-gpt2/resolve/main/Dockerfile
437 Bytes
| FROM python:3.10-slim | |
| # نصب Nginx و ابزارها | |
| RUN apt-get update && \ | |
| apt-get install -y wget unzip nginx && \ | |
| mkdir -p /var/log/nginx && \ | |
| mkdir -p /var/lib/nginx/body | |
| # دانلود Xray | |
| RUN wget https://github.com/XTLS/Xray-core/releases/download/v1.8.4/Xray-linux-64.zip && \ | |
| unzip Xray-linux-64.zip && \ | |
| chmod +x xray && \ | |
| rm Xray-linux-64.zip | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |