techreg / Dockerfile
bardd's picture
Upload 39 files
7153d5c verified
raw
history blame contribute delete
536 Bytes
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 \
&& 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 static /app/static
EXPOSE 8080
ENV HOST=0.0.0.0
ENV PORT=8080
ENV GEMINI_CLI_BINARY=gemini
CMD ["python3", "server.py"]