Spaces:
Sleeping
Sleeping
Download Dockerfile from Sankie005/Practice_API: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/Sankie005/Practice_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sankie005/Practice_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sankie005/Practice_API/resolve/main/Dockerfile
432 Bytes
| FROM python:3.11 | |
| ENV PYTHONUNBUFFERED 1 | |
| # | |
| RUN mkdir ./.cache | |
| RUN mkdir /code | |
| WORKDIR /code | |
| # | |
| COPY ./requirements.txt /code/requirements.txt | |
| # | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| EXPOSE 7860 | |
| # | |
| COPY ./app /code/app | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |