diff --git a/Dockerfile b/Dockerfile index f46bbab97..2564e128c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,7 @@ RUN chmod +x entrypoint.sh EXPOSE 4000/tcp # Set your entrypoint and command -CMD ["./entrypoint.sh"] \ No newline at end of file +CMD [ \ + "sh", "-c", \ + "if [ -n \"$DATABASE_URL\" ]; then ./entrypoint.sh; else litellm --port 4000 --num_workers 8; fi" \ +] \ No newline at end of file