Spaces:
Runtime error
Runtime error
Download Dockerfile from Abdullahcoder54/Hackaton1_BOOK_chatbot: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/Abdullahcoder54/Hackaton1_BOOK_chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Abdullahcoder54/Hackaton1_BOOK_chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Abdullahcoder54/Hackaton1_BOOK_chatbot/resolve/main/Dockerfile
456 Bytes
| FROM python:3.10 | |
| RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 | |
| # Create user but stay root during install | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| # Install dependencies as root | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy app AFTER installing dependencies | |
| COPY . /app | |
| # Switch to non-root user for safety | |
| USER user | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |