Spaces:
Sleeping
Sleeping
Download docker from Adedayo2000/sentiment-fastapi-api: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/Adedayo2000/sentiment-fastapi-api/resolve/f2b7704656695c3eb9fefb7aaa25529bbfeff3ca/docker
- Command line
-
hf download hf://spaces/Adedayo2000/sentiment-fastapi-api@f2b7704656695c3eb9fefb7aaa25529bbfeff3ca/docker
-
curl -L -o docker https://huggingface.co/spaces/Adedayo2000/sentiment-fastapi-api/resolve/f2b7704656695c3eb9fefb7aaa25529bbfeff3ca/docker
309 Bytes
| FROM python:3.11.1 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| CMD ["uvicorn", "sentiment-api:app", "--host", "0.0.0.0", "--port", "7860"] |