From 95efde1cb6b6c9c8070f39c908689f259f59fa4f Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 10 Jan 2024 16:27:15 +0530 Subject: [PATCH] (fix) main Dockerfile --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ead25a756..3b701cd49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,11 +51,8 @@ RUN chmod +x entrypoint.sh EXPOSE 4000/tcp -# Set your entrypoint and command -CMD [ \ - "sh", "-c", \ - "if [ -n \"$DATABASE_URL\" ]; then ./entrypoint.sh; else litellm --port 4000 --num_workers 8; fi" \ -] +# Set your entrypoint and command - if user wants to use Prisma Database +ENTRYPOINT ["sh", "-c", "[ -n \"$DATABASE_URL\" ] && ./entrypoint.sh"] # this allows accepting litellm args -ENTRYPOINT ["litellm", "--port", "4000"] \ No newline at end of file +CMD ["litellm", "--port", "4000"] \ No newline at end of file