Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
FROM ghcr.io/berriai/litellm:latest
|
2 |
|
3 |
-
#
|
4 |
-
RUN pip install 'litellm[proxy]' backoff
|
5 |
-
|
6 |
WORKDIR /app
|
7 |
|
|
|
8 |
COPY config.yaml .
|
9 |
|
|
|
|
|
|
|
|
|
10 |
EXPOSE 7860
|
11 |
|
12 |
-
|
13 |
CMD ["--port", "7860", "--config", "config.yaml"]
|
|
|
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"]
|