Spaces:
Runtime error
Runtime error
Download Dockerfile from muthukumar22/superkart: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/muthukumar22/superkart/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/muthukumar22/superkart/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muthukumar22/superkart/resolve/main/Dockerfile
612 Bytes
| # Use a lightweight Python image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy all files into the container | |
| COPY . /app | |
| # Install system dependencies (optional but useful for pandas/numpy) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the Hugging Face expected port | |
| EXPOSE 7860 | |
| # Run Streamlit app on the correct port and interface | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |