Download Dockerfile from danicor/danitell: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/danicor/danitell/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/danicor/danitell/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/danicor/danitell/resolve/main/Dockerfile
485 Bytes
| # Dockerfile برای Hugging Face Space | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # کپی فایلهای requirements | |
| COPY requirements.txt . | |
| # نصب dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # کپی کد اپلیکیشن | |
| COPY app.py . | |
| # ساخت دایرکتوری برای ذخیره فایلها | |
| RUN mkdir -p files | |
| # expose کردن پورت | |
| EXPOSE 7860 | |
| # اجرای اپلیکیشن | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |