Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -13
Dockerfile
CHANGED
@@ -1,21 +1,20 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Définir un répertoire de cache avec les bonnes permissions
|
4 |
-
ENV PRISMA_CACHE_DIR=/tmp/prisma-cache
|
5 |
-
|
6 |
-
# Créer le répertoire de cache et définir les permissions
|
7 |
-
RUN mkdir -p $PRISMA_CACHE_DIR && chmod -R 777 $PRISMA_CACHE_DIR
|
8 |
|
|
|
9 |
WORKDIR /app
|
10 |
|
|
|
11 |
COPY config.yaml .
|
12 |
|
13 |
-
#
|
14 |
-
|
15 |
-
|
16 |
-
# Désactiver la vérification de santé Prisma si non nécessaire
|
17 |
-
ENV LITELLM_PROXY_SKIP_PRISMA_HEALTH_CHECK=true
|
18 |
|
|
|
19 |
EXPOSE 7860/tcp
|
20 |
|
21 |
-
CMD
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the provided base image
|
2 |
+
FROM ghcr.io/berriai/litellm:main-latest
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
# Set the working directory to /app
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the configuration file into the container at /app
|
8 |
COPY config.yaml .
|
9 |
|
10 |
+
# Make sure your docker/entrypoint.sh is executable
|
11 |
+
RUN chmod +x ./docker/entrypoint.sh
|
|
|
|
|
|
|
12 |
|
13 |
+
# Expose the necessary port
|
14 |
EXPOSE 7860/tcp
|
15 |
|
16 |
+
# Override the CMD instruction with your desired command and arguments
|
17 |
+
# WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
|
18 |
+
# CMD ["--port", "7860", "--config", "config.yaml"]
|
19 |
+
|
20 |
+
CMD ["--port", "7860", "--config", "config.yaml", "--detailed_debug"]
|