Hiren122 commited on
Commit
bb21105
·
verified ·
1 Parent(s): 0c574e6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -7
Dockerfile CHANGED
@@ -1,7 +1,20 @@
1
- docker run \
2
- -v $(pwd)/litellm_config.yaml:/app/config.yaml \
3
- -e AZURE_API_KEY=d6*********** \
4
- -e AZURE_API_BASE=https://openai-***********/ \
5
- -p 4000:4000 \
6
- ghcr.io/berriai/litellm:main-stable \
7
- --config /app/config.yaml --detailed_debug
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the provided base image
2
+ FROM ghcr.io/berriai/litellm:main-stable
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 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"]