From fb325cbb5e684bc945da2750ea0133f1d7bdafbb Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 13 Aug 2025 17:19:43 -0700 Subject: [PATCH] fix Build from litellm `pip` package (#13603) --- docs/my-website/docs/proxy/deploy.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/my-website/docs/proxy/deploy.md b/docs/my-website/docs/proxy/deploy.md index ddd88bb290..701fc49223 100644 --- a/docs/my-website/docs/proxy/deploy.md +++ b/docs/my-website/docs/proxy/deploy.md @@ -127,6 +127,8 @@ CMD ["--port", "4000", "--config", "config.yaml", "--detailed_debug"] Follow these instructions to build a docker container from the litellm pip package. If your company has a strict requirement around security / building images you can follow these steps. +**Note:** You'll need to copy the `schema.prisma` file from the [litellm repository](https://github.com/BerriAI/litellm/blob/main/schema.prisma) to your build directory alongside the Dockerfile and requirements.txt. + Dockerfile ```shell @@ -149,6 +151,12 @@ COPY requirements.txt . RUN --mount=type=cache,target=${HOME}/.cache/pip \ ${HOME}/venv/bin/pip install -r requirements.txt +# Copy Prisma schema file +COPY schema.prisma . + +# Generate prisma client +RUN prisma generate + EXPOSE 4000/tcp ENTRYPOINT ["litellm"]