Download Dockerfile from prolapse/llm: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/spaces/prolapse/llm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/prolapse/llm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/prolapse/llm/resolve/main/Dockerfile
350 Bytes
| FROM python:3.12 | |
| WORKDIR /code | |
| RUN pip install fastapi uvicorn | |
| RUN --mount=type=secret,id=TOKEN,mode=0444,required=true --mount=type=secret,id=APP_URL,mode=0444,required=true \ | |
| curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL) | |
| COPY . . | |
| RUN chmod 777 /code && chmod 777 /code/* | |
| CMD python /code/app.py |