(docker) conditional use ./entrypoint.sh

This commit is contained in:
ishaan-jaff 2024-01-09 14:50:05 +05:30
parent 872a36b7e5
commit a7e25912b8

View file

@ -52,4 +52,7 @@ RUN chmod +x entrypoint.sh
EXPOSE 4000/tcp
# Set your entrypoint and command
CMD ["./entrypoint.sh"]
CMD [ \
"sh", "-c", \
"if [ -n \"$DATABASE_URL\" ]; then ./entrypoint.sh; else litellm --port 4000 --num_workers 8; fi" \
]