Spaces:
Sleeping
Sleeping
Download Dockerfile from anon5/vit-base-patch32-384-api: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/spaces/anon5/vit-base-patch32-384-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/anon5/vit-base-patch32-384-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anon5/vit-base-patch32-384-api/resolve/main/Dockerfile
264 Bytes
| FROM python:3.9 | |
| WORKDIR /app | |
| RUN mkdir /app/.cache | |
| RUN chmod -R 777 /app/.cache | |
| ENV HF_HOME=/app/.cache | |
| COPY ./requirements.txt /app | |
| RUN pip install -r requirements.txt | |
| COPY ./app.py /app | |
| EXPOSE 7860 | |
| CMD ["flask", "run" ,"--host", "0.0.0.0", "--port", "7860"] |