Spaces:
Runtime error
Runtime error
Download Dockerfile from RusanGenius/Tg-cloud: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/RusanGenius/Tg-cloud/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RusanGenius/Tg-cloud/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RusanGenius/Tg-cloud/resolve/main/Dockerfile
560 Bytes
| # Используем Python | |
| FROM python:3.10 | |
| # Создаем рабочую папку | |
| WORKDIR /code | |
| # Копируем файл зависимостей и устанавливаем их | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Копируем весь остальной код | |
| COPY . . | |
| # Запускаем приложение на порту 7860 (это обязательное требование HF) | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |