gemini.Dockerfile hinzugefügt
This commit is contained in:
20
gemini.Dockerfile
Normal file
20
gemini.Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Verwenden Sie ein offizielles Python-Image als Basis
|
||||||
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
# Installieren Sie die Google Cloud CLI (wichtig für die Authentifizierung)
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
gnupg \
|
||||||
|
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
|
||||||
|
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
|
||||||
|
&& apt-get update && apt-get install -y google-cloud-cli
|
||||||
|
|
||||||
|
# Installieren Sie die Gemini CLI
|
||||||
|
# Hinweis: Das Paket heißt google-generativeai, die CLI selbst dann 'gemini'
|
||||||
|
RUN pip install google-generativeai
|
||||||
|
|
||||||
|
# Setzen Sie das Arbeitsverzeichnis im Container
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Starten Sie eine interaktive Shell, wenn der Container läuft
|
||||||
|
CMD ["bash"]
|
||||||
Reference in New Issue
Block a user