Spaces:
Sleeping
Sleeping
File size: 426 Bytes
a1422f3 30fc4f8 703dfab 30fc4f8 2dc90a3 30fc4f8 703dfab a1422f3 703dfab a1422f3 30fc4f8 703dfab f4cce04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.12.10-slim
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
RUN adduser --disabled-password --gecos "" appuser && chown -R appuser /code
USER appuser
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://0.0.0.0:7860/ || exit 1
CMD ["gunicorn","-b", "0.0.0.0:7860", "gemini:app"]
|