Skip to content
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

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

Manouchehri
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Dec 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 2:33am

@Manouchehri
Copy link
Collaborator Author

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
Copy link
Contributor

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

Copy link
Collaborator Author

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!

Copy link
Contributor

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

Copy link
Collaborator Author

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. =)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough

@krrishdholakia krrishdholakia merged commit 2c58721 into BerriAI:main Dec 11, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants