Spaces:
Runtime error
Runtime error
Download Dockerfile from FaridaYasserEl-Lahamy/zpSearchFastAPI: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/FaridaYasserEl-Lahamy/zpSearchFastAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FaridaYasserEl-Lahamy/zpSearchFastAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FaridaYasserEl-Lahamy/zpSearchFastAPI/resolve/main/Dockerfile
302 Bytes
| FROM python:3.12 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /code | |
| USER root | |
| RUN chown -R user:user /code | |
| USER user | |
| RUN pip install uvicorn | |
| RUN pip show uvicorn | |
| COPY --chown=user:user . /code | |
| ENV PATH="/home/user/.local/bin:${PATH}" | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |