Spaces:
Sleeping
Sleeping
Download Dockerfile from tech5/chatbot-frontend: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/tech5/chatbot-frontend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tech5/chatbot-frontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tech5/chatbot-frontend/resolve/main/Dockerfile
646 Bytes
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy everything | |
| COPY . /app | |
| # Install requirements | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Create .streamlit config with safe permissions | |
| RUN mkdir -p /app/.streamlit && \ | |
| chmod -R 777 /app/.streamlit && \ | |
| echo "\ | |
| [server]\n\ | |
| headless = true\n\ | |
| port = 7860\n\ | |
| enableCORS = false\n\ | |
| enableXsrfProtection = false\n\ | |
| \n\ | |
| [browser]\n\ | |
| gatherUsageStats = false\n\ | |
| " > /app/.streamlit/config.toml | |
| # Expose the port Streamlit runs on | |
| EXPOSE 7860 | |
| # Run Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |