From e8a56819cf724ca7ec69677ef3455d9c85e56523 Mon Sep 17 00:00:00 2001 From: coconut49 Date: Tue, 17 Oct 2023 22:53:06 +0800 Subject: [PATCH] Refactor start script and Dockerfile, switch to bash entrypoint --- Dockerfile | 10 ++-------- litellm/proxy/start.sh | 3 ++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c8140ffc3..24b4c48cd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,9 @@ FROM python:3.10 -RUN pip install poetry - -WORKDIR /app - -COPY . . +COPY . /app RUN pip install -r requirements.txt WORKDIR /app/litellm/proxy -RUN python proxy_cli.py --config -f /app/secrets_template.toml - -RUN python proxy_cli.py \ No newline at end of file +ENTRYPOINT [ "/bin/bash", "/app/litellm/proxy/start.sh" ] \ No newline at end of file diff --git a/litellm/proxy/start.sh b/litellm/proxy/start.sh index 09357679ca..5863661084 100755 --- a/litellm/proxy/start.sh +++ b/litellm/proxy/start.sh @@ -1,2 +1,3 @@ -python3 proxy_cli.py --config -f ../../secrets_template.toml & +#!/bin/bash +python3 proxy_cli.py --config -f ../../secrets_template.toml python3 proxy_cli.py \ No newline at end of file