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