Spaces:
Sleeping
Sleeping
Download Dockerfile from s4red/ai-data-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/s4red/ai-data-chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/s4red/ai-data-chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/s4red/ai-data-chatbot/resolve/main/Dockerfile
376 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # HuggingFace Spaces runs as a non-root user and expects port 7860 | |
| RUN useradd -m appuser && chown -R appuser /app | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"] | |