forked from phoenix/litellm-mirror
(fix) dockerfile run prisma generate if DATABSE_URL set in env
This commit is contained in:
parent
46bd99ad98
commit
358a44ce13
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,12 @@ RUN pip install --no-cache-dir --find-links=/wheels/ -r requirements.txt \
|
|||
&& pip install *.whl \
|
||||
&& rm -f *.whl
|
||||
|
||||
# if user has set os.environ['DATABASE_URL'] != None, run prisma generate
|
||||
RUN if [ -n "$DATABASE_URL" ]; then \
|
||||
echo "DATABASE_URL is set to: $DATABASE_URL"; \
|
||||
prisma generate; \
|
||||
fi
|
||||
|
||||
EXPOSE 4000/tcp
|
||||
|
||||
# Set your entrypoint and command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue