Spaces:
Runtime error
Runtime error
Download Dockerfile from opinder2906/final: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/spaces/opinder2906/final/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/opinder2906/final/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/opinder2906/final/resolve/main/Dockerfile
700 Bytes
| # Use official Python image | |
| FROM python:3.9-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy app files | |
| COPY . /app | |
| # Install system dependencies (optional, for matplotlib/seaborn) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Set Streamlit config to avoid permission errors | |
| ENV STREAMLIT_HOME=/app/.streamlit | |
| # Expose Streamlit default port | |
| EXPOSE 8501 | |
| # Run the app | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |