| |
| |
|
|
| FROM python:3.11-slim |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| nodejs \ |
| npm \ |
| curl \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN npm install -g @google/gemini-cli |
|
|
| WORKDIR /app |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| COPY server.py . |
| COPY start.sh . |
| RUN chmod +x start.sh |
|
|
| |
| RUN mkdir -p /root/.gemini /root/.gemini/api_sessions |
|
|
| EXPOSE 7860 |
|
|
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ |
| CMD curl -f http://localhost:7860/health || exit 1 |
|
|
| CMD ["./start.sh"] |
|
|