gemini-endpoints / Dockerfile
m8chaa's picture
Update Dockerfile
688bcf2 verified
Raw History Blame Contribute Delete
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"]