Spaces:
Runtime error
Runtime error
Download Dockerfile from DunaevStudio/DanudeAi: direct link, hf CLI and curl.
- Browser
- Download file 647 Bytes
-
https://huggingface.co/spaces/DunaevStudio/DanudeAi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DunaevStudio/DanudeAi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DunaevStudio/DanudeAi/resolve/main/Dockerfile
647 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| # Установка зависимостей | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt && \ | |
| rm -rf /root/.cache/pip | |
| # Копирование файлов | |
| COPY app.py . | |
| COPY index.html . | |
| # Проверка наличия index.html | |
| RUN test -f index.html || (echo "ERROR: index.html missing" && exit 1) | |
| EXPOSE 7860 | |
| # Запуск с оптимизированными параметрами | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--log-level", "info"] |