Spaces:
Build error
Build error
Download Dockerfile from mila2030/sam2-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/mila2030/sam2-fastapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mila2030/sam2-fastapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mila2030/sam2-fastapi/resolve/main/Dockerfile
313 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y git | |
| # install pip dependencies | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # copy source | |
| COPY app.py . | |
| # expose port | |
| EXPOSE 7860 | |
| # run | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |
| COPY checkpoint checkpoint | |