Download Dockerfile from jsijan/car-angle: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/jsijan/car-angle/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jsijan/car-angle/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jsijan/car-angle/resolve/main/Dockerfile
549 Bytes
| # Use lightweight Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system packages | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy dependencies file and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your FastAPI app code | |
| COPY app /app/app | |
| # Expose the port (default for Spaces) | |
| EXPOSE 7860 | |
| # Run the API on the correct port for Spaces | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |