Spaces:
Runtime error
Runtime error
Download Dockerfile from m8chaa/gemini-endpoints: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/m8chaa/gemini-endpoints/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/m8chaa/gemini-endpoints/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/m8chaa/gemini-endpoints/resolve/main/Dockerfile
406 Bytes
| FROM python:3.10 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Create Docker secret | |
| RUN mkdir -p /app/secrets | |
| RUN --mount=type=secret,id=GEMINI_KEY,mode=0444,required=true \ | |
| cat /run/secrets/GEMINI_KEY > /app/secrets/gemini_key.txt | |
| COPY . . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |