Download Dockerfile from Opera8/Git-hf: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/Opera8/Git-hf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Opera8/Git-hf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Opera8/Git-hf/resolve/main/Dockerfile
464 Bytes
| FROM python:3.9-slim | |
| # نصب Git، Git-LFS و ابزارهای لازم | |
| RUN apt-get update && apt-get install -y git git-lfs && git lfs install | |
| # تنظیم پوشه کاری | |
| WORKDIR /app | |
| # کپی کردن فایلها و نصب نیازمندیها | |
| COPY . . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # اجرای برنامه روی پورت 7860 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |