Download Dockerfile from MMLR/try_catt: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/MMLR/try_catt/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MMLR/try_catt/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MMLR/try_catt/resolve/main/Dockerfile
473 Bytes
| FROM python:3.9-bullseye | |
| RUN useradd -m user # Creates user with home directory | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --user -r requirements.txt | |
| COPY --chown=user . . | |
| HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ | |
| CMD curl --fail http://localhost:7860/test || exit 1 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |