Download Dockerfile from samwell/cosmos-predict2-endpoint: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/samwell/cosmos-predict2-endpoint/resolve/main/Dockerfile
- Command line
-
hf download hf://samwell/cosmos-predict2-endpoint/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/samwell/cosmos-predict2-endpoint/resolve/main/Dockerfile
348 Bytes
| FROM nvcr.io/nvidia/cosmos/cosmos-predict2-container:1.2 | |
| WORKDIR /app | |
| # Install additional dependencies for the API server | |
| RUN pip install --no-cache-dir fastapi uvicorn python-multipart | |
| # Copy handler | |
| COPY handler.py /app/handler.py | |
| # Expose port | |
| EXPOSE 80 | |
| # Run the server | |
| CMD ["uvicorn", "handler:app", "--host", "0.0.0.0", "--port", "80"] | |