reztilop commited on
Commit
fc55178
·
verified ·
1 Parent(s): a825f6c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -1,16 +1,19 @@
1
- FROM ghcr.io/berriai/litellm:latest
 
 
 
2
 
3
- # Définir un répertoire de travail
4
  WORKDIR /app
5
 
6
- # Copier le fichier de configuration
 
7
  COPY config.yaml .
8
 
9
- # Utiliser SQLite comme base de données
10
- ENV DATABASE_URL=file:/tmp/litellm.db
11
 
12
  # Exposer le port
13
  EXPOSE 7860
14
 
15
- # Commande par défaut
16
- CMD ["--port", "7860", "--config", "config.yaml"]
 
1
+ FROM python:3.11-slim
2
+
3
+ # Installer les dépendances
4
+ RUN pip install litellm fastapi uvicorn
5
 
 
6
  WORKDIR /app
7
 
8
+ # Copier les fichiers nécessaires
9
+ COPY app.py .
10
  COPY config.yaml .
11
 
12
+ # Variables d'environnement
13
+ ENV GEMINI_API_KEY=${GEMINI_API_KEY}
14
 
15
  # Exposer le port
16
  EXPOSE 7860
17
 
18
+ # Commande de démarrage
19
+ CMD ["uvicorn", "app:predict", "--host", "0.0.0.0", "--port", "7860"]