Spaces:
Runtime error
Runtime error
Download Dockerfile from Alef1986/ProcessModelDemo: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/Alef1986/ProcessModelDemo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Alef1986/ProcessModelDemo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Alef1986/ProcessModelDemo/resolve/main/Dockerfile
580 Bytes
| FROM python:3.9 | |
| # Создаем пользователя для безопасности | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| # Копируем файлы и устанавливаем зависимости | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| # Запуск Streamlit на порту 7860 (обязательно для Hugging Face) | |
| CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "7860"] |