This commit resolves all outstanding issues with the AI Insights feature.
- Corrects the transcript formatting logic in to properly handle the database JSON structure, ensuring the AI receives the correct context.
- Fixes the Gemini API client by using the correct model name ('gemini-2.0-flash') and the proper client initialization.
- Updates to securely pass the API key as an environment variable to the container.
- Cleans up the codebase by removing temporary debugging endpoints.
- Adds script for programmatic updates.
- Updates documentation with troubleshooting insights from the implementation process.
27 lines
797 B
Docker
27 lines
797 B
Docker
# Verwenden Sie ein offizielles Node.js-Image als Basis.
|
|
FROM node:20-slim
|
|
|
|
# Installieren von Basis-Tools wie Git, Python und jetzt auch curl
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
python3 \
|
|
python3-pip \
|
|
curl \
|
|
# Aufräumen
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python-Bibliotheken für dev_session.py installieren
|
|
RUN pip3 install requests python-dotenv
|
|
|
|
# Installieren der von Ihnen gefundenen, korrekten Gemini CLI global
|
|
RUN npm install -g @google/gemini-cli
|
|
|
|
# Git anweisen, dem gemounteten Projektverzeichnis zu vertrauen
|
|
RUN git config --global --add safe.directory /app
|
|
|
|
# Setzen Sie das Arbeitsverzeichnis im Container
|
|
WORKDIR /app
|
|
|
|
# Starten Sie eine interaktive Shell, wenn der Container läuft
|
|
CMD ["bash"] |