Spaces:
Paused
Paused
Download Dockerfile from DunaevStudio/test: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/DunaevStudio/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DunaevStudio/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DunaevStudio/test/resolve/main/Dockerfile
535 Bytes
| # Используем официальный образ Python | |
| FROM python:3.10-slim | |
| # Устанавливаем рабочую директорию | |
| WORKDIR /app | |
| # Копируем зависимости и устанавливаем их | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Копируем код приложения | |
| COPY app.py . | |
| # Открываем порт для Gradio (по умолчанию 7860) | |
| EXPOSE 7860 | |
| # Запускаем приложение | |
| CMD ["python", "app.py"] |