Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 entrypoint.sh is executable
|
11 |
+
RUN chmod +x entrypoint.sh
|
12 |
+
|
13 |
+
# Expose the necessary port
|
14 |
+
EXPOSE 4000/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", "4000", "--config", "config.yaml"]
|
19 |
+
|
20 |
+
CMD ["--port", "4000", "--config", "config.yaml", "--detailed_debug"]
|