Spaces:
Sleeping
Sleeping
Download Dockerfile from AI-Infy/AI-application: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/AI-Infy/AI-application/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AI-Infy/AI-application/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AI-Infy/AI-application/resolve/main/Dockerfile
377 Bytes
| FROM python:3.11.0 | |
| COPY . . | |
| WORKDIR / | |
| RUN pip install --no-cache-dir --upgrade -r /requirements.txt | |
| # Get secrets | |
| RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true | |
| RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true | |
| RUN --mount=type=secret,id=API_KEY,mode=0444,required=true | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] |