Download Dockerfile from LordMorax/ImageAPI: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/LordMorax/ImageAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LordMorax/ImageAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LordMorax/ImageAPI/resolve/main/Dockerfile
298 Bytes
| FROM python:3.12 | |
| WORKDIR /app | |
| COPY --chown=1000 . /app | |
| RUN chmod -R 777 /app | |
| RUN mkdir /.cache \ | |
| && chmod -R 777 /.cache | |
| RUN pip install --break-system-packages --no-cache-dir --requirement requirements.txt | |
| CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--worker-class", "gevent"] |