Spaces:
Runtime error
Runtime error
Download Dockerfile from samithcs/Pneumonia-Classifier-App: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/samithcs/Pneumonia-Classifier-App/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/samithcs/Pneumonia-Classifier-App/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/samithcs/Pneumonia-Classifier-App/resolve/main/Dockerfile
478 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| build-essential \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy only pyproject.toml | |
| COPY pyproject.toml . | |
| # Install dependencies | |
| RUN pip install --upgrade pip setuptools wheel && \ | |
| pip install -e . | |
| # Copy source code last | |
| COPY . . | |
| EXPOSE 7860 | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |