Download Dockerfile from Abdullah1211/ml-stroke: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/Abdullah1211/ml-stroke/resolve/main/Dockerfile
- Command line
-
hf download hf://Abdullah1211/ml-stroke/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/Abdullah1211/ml-stroke/resolve/main/Dockerfile
454 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Create a non-root user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Install required packages directly | |
| RUN pip install --no-cache-dir --user fastapi==0.95.2 uvicorn==0.23.2 numpy==1.24.3 joblib==1.3.2 | |
| # Copy application files | |
| COPY --chown=user:user . . | |
| # Run the application | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |