Spaces:
Sleeping
Sleeping
Download Dockerfile from Paradise151/GrechnikNet: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/spaces/Paradise151/GrechnikNet/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Paradise151/GrechnikNet/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Paradise151/GrechnikNet/resolve/main/Dockerfile
682 Bytes
| # 1. Базовый образ | |
| FROM python:3.9-slim | |
| # 2. Рабочая директория | |
| WORKDIR /code | |
| # 3. Устанавливаем системные зависимости для OpenCV | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 4. Копируем requirements.txt | |
| COPY ./requirements.txt /code/requirements.txt | |
| # 5. Устанавливаем Python-зависимости | |
| RUN pip install --no-cache-dir --upgrade pip -r /code/requirements.txt | |
| # 6. Копируем проект | |
| COPY ./ /code/ | |
| # 7. Запуск приложения | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |