Download Dockerfile from user1729/cancer_classify_extract-api: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/user1729/cancer_classify_extract-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/user1729/cancer_classify_extract-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/user1729/cancer_classify_extract-api/resolve/main/Dockerfile
399 Bytes
| # Use official CUDA 12.1 image with Ubuntu | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Upgrade pip | |
| RUN pip3 install --upgrade pip | |
| # Copy Python dependencies | |
| ADD requirements.txt . | |
| RUN pip3 install -r requirements.txt | |
| # Expose port | |
| EXPOSE 7860 | |
| # Copy application code | |
| COPY app ./app | |
| # Run the application | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |