forked from phoenix/litellm-mirror
(docker) conditional use ./entrypoint.sh
This commit is contained in:
parent
872a36b7e5
commit
a7e25912b8
1 changed files with 4 additions and 1 deletions
|
@ -52,4 +52,7 @@ RUN chmod +x entrypoint.sh
|
||||||
EXPOSE 4000/tcp
|
EXPOSE 4000/tcp
|
||||||
|
|
||||||
# Set your entrypoint and command
|
# 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" \
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue