Update Dockerfile
Browse files- Dockerfile +7 -20
Dockerfile
CHANGED
|
@@ -1,20 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 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"]
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|