Download Dockerfile from sheikh987/Derma: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/sheikh987/Derma/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sheikh987/Derma/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sheikh987/Derma/resolve/main/Dockerfile
442 Bytes
| FROM python:3.10-slim | |
| # Set environment variables for safe cache locations | |
| ENV TORCH_HOME=/tmp/torch | |
| ENV TRANSFORMERS_CACHE=/tmp/transformers | |
| ENV HF_HOME=/tmp/huggingface | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code and model | |
| COPY app.py . | |
| COPY pretrained_model.pth . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |