Spaces:
Sleeping
Sleeping
Download Dockerfile from Brazela/upscale-api: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Brazela/upscale-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Brazela/upscale-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Brazela/upscale-api/resolve/main/Dockerfile
382 Bytes
| FROM python:3.10 | |
| WORKDIR /app | |
| COPY . . | |
| RUN pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu | |
| RUN pip install --no-cache-dir fastapi uvicorn python-multipart pillow numpy super-image | |
| RUN pip install --no-cache-dir --force-reinstall opencv-python-headless | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |