Download Dockerfile from Group2255/programming-help-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/Group2255/programming-help-chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Group2255/programming-help-chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Group2255/programming-help-chatbot/resolve/main/Dockerfile
530 Bytes
| # π¦ Base Image: Lightweight Python 3.9 with security updates | |
| FROM python:3.9-slim | |
| # π Set working directory inside the container | |
| WORKDIR /app | |
| # π Copy necessary application files into the container | |
| COPY requirements.txt . | |
| COPY app.py . | |
| COPY README.md . | |
| # βοΈ Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # π Expose Streamlit default port | |
| EXPOSE 8501 | |
| # π Launch the Streamlit application | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false"] | |