-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Dockerfile to preinstall Prisma CLI #1039
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This significantly improves startup times for containers. =) |
@@ -19,6 +19,9 @@ COPY . /app | |||
RUN pip wheel --no-cache-dir --wheel-dir=wheels -r requirements.txt | |||
RUN pip install --no-cache-dir --find-links=wheels -r requirements.txt | |||
|
|||
# Trigger the Prisma CLI to be installed | |||
RUN prisma -v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make this optional in some way. Not everyone needs prisma installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, we could make a second Docker container, though not sure if it's worth it.
I don't mind carrying this patch out-of-tree, it's pretty easy for us since there's rarely any merge conflicts. Up to you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could make it a cli arg, similar to how tgi does it - https://huggingface.co/docs/text-generation-inference/basic_tutorials/launcher
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would still have the slow startup time though I think, since we're spinning a fresh container all the time. =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough
No description provided.