Download Dockerfile from speedartificialintelligence1122/text-image: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/speedartificialintelligence1122/text-image/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/speedartificialintelligence1122/text-image/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/speedartificialintelligence1122/text-image/resolve/main/Dockerfile
344 Bytes
| FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04 | |
| # System setup | |
| RUN apt-get update && apt-get install -y python3-pip git libgl1 | |
| # Python dependencies | |
| COPY requirements.txt . | |
| RUN pip3 install --upgrade pip && pip3 install -r requirements.txt | |
| # App | |
| COPY . /app | |
| WORKDIR /app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |