Spaces:
Paused
Paused
Download Dockerfile from muryshev/commandr-api-local: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/muryshev/commandr-api-local/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/muryshev/commandr-api-local/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muryshev/commandr-api-local/resolve/main/Dockerfile
312 Bytes
| FROM python:3.10-buster | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| COPY --chown=user . /app/commandr-api-local | |
| WORKDIR /app/commandr-api-local | |
| # COPY . . | |
| RUN pip3 install --upgrade pip | |
| RUN pip3 install -r requirements.txt | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |