Spaces:
Runtime error
Runtime error
Download Dockerfile from Annajds/image-embedding-api: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/Annajds/image-embedding-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Annajds/image-embedding-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Annajds/image-embedding-api/resolve/main/Dockerfile
436 Bytes
| # Use lightweight Python base image | |
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy files | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Expose Hugging Face default port | |
| EXPOSE 7860 | |
| # Run FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |