Spaces:
Runtime error
Runtime error
Download Dockerfile from sheikh987/classifierskins: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/sheikh987/classifierskins/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sheikh987/classifierskins/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sheikh987/classifierskins/resolve/main/Dockerfile
585 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Set the HuggingFace Transformers cache directory | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| # Create the cache directory and ensure it's writable | |
| RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Copy files and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy app code | |
| COPY main.py . | |
| # Run the FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |