Spaces:
Runtime error
Runtime error
Download Dockerfile from HawkeyeHS/ImageExplicit: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/HawkeyeHS/ImageExplicit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HawkeyeHS/ImageExplicit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HawkeyeHS/ImageExplicit/resolve/main/Dockerfile
320 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| # Create cache directory and set permissions | |
| RUN mkdir -p /.cache/huggingface/hub && \ | |
| chmod -R 777 /.cache | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| CMD ["gunicorn","-b", "0.0.0.0:7860", "app:app"] | |