Spaces:
Runtime error
Runtime error
Download Dockerfile from Harshb11/mca_comment_analyzer: direct link, hf CLI and curl.
- Browser
- Download file 847 Bytes
-
https://huggingface.co/spaces/Harshb11/mca_comment_analyzer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Harshb11/mca_comment_analyzer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Harshb11/mca_comment_analyzer/resolve/main/Dockerfile
847 Bytes
| # ---- Base image | |
| FROM python:3.11-slim | |
| # ---- Set working directory | |
| WORKDIR /app | |
| # ---- Avoid warnings and set env for matplotlib | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV MPLCONFIGDIR=/tmp/.matplotlib | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # ---- System dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| wget \ | |
| git \ | |
| curl \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # ---- Copy requirements | |
| COPY requirements.txt . | |
| # ---- Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ---- Copy app files | |
| COPY . . | |
| # ---- Expose Streamlit default port | |
| EXPOSE 8501 | |
| # ---- Command to run Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false"] | |