Spaces:
Runtime error
Runtime error
Download Dockerfile from AjaykumarPilla/test: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/AjaykumarPilla/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AjaykumarPilla/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AjaykumarPilla/test/resolve/main/Dockerfile
485 Bytes
| FROM python:3.9-slim | |
| # Install dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| g++ \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY app.py . | |
| COPY model.pkl . | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Run Streamlit | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |