mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(fix) main Dockerfile
This commit is contained in:
parent
b3b674e1b5
commit
95efde1cb6
1 changed files with 3 additions and 6 deletions
|
@ -51,11 +51,8 @@ RUN chmod +x entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 4000/tcp
|
EXPOSE 4000/tcp
|
||||||
|
|
||||||
# Set your entrypoint and command
|
# Set your entrypoint and command - if user wants to use Prisma Database
|
||||||
CMD [ \
|
ENTRYPOINT ["sh", "-c", "[ -n \"$DATABASE_URL\" ] && ./entrypoint.sh"]
|
||||||
"sh", "-c", \
|
|
||||||
"if [ -n \"$DATABASE_URL\" ]; then ./entrypoint.sh; else litellm --port 4000 --num_workers 8; fi" \
|
|
||||||
]
|
|
||||||
|
|
||||||
# this allows accepting litellm args
|
# this allows accepting litellm args
|
||||||
ENTRYPOINT ["litellm", "--port", "4000"]
|
CMD ["litellm", "--port", "4000"]
|
Loading…
Add table
Add a link
Reference in a new issue