File size: 619 Bytes
a572e71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.12-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

WORKDIR /app

# Install system dependencies and gemini-cli
RUN apt-get update \
    && apt-get install -y --no-install-recommends nodejs npm ca-certificates \
    && python3 -m pip install --no-cache-dir langsmith \
    && npm install -g @google/gemini-cli \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Copy server and pre-built static files
COPY server.py /app/server.py
COPY prompts /app/prompts
COPY static /app/static

EXPOSE 8080
ENV HOST=0.0.0.0
ENV PORT=8080
ENV GEMINI_CLI_BINARY=gemini

CMD ["python3", "server.py"]