Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fixes build from pip

Ishaan Jaff82a03fd163b6
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 019f1b090d9..ba1c2a26dbc 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2174,14 +2174,12 @@ jobs:
- run:
name: Build Docker image
command: |
- cd docker/build_from_pip
- docker build -t my-app:latest -f Dockerfile.build_from_pip .
+ docker build -t my-app:latest -f docker/build_from_pip/Dockerfile.build_from_pip .
- run:
name: Run Docker container
# intentionally give bad redis credentials here
# the OTEL test - should get this as a trace
command: |
- cd docker/build_from_pip
docker run -d \
-p 4000:4000 \
-e DATABASE_URL=$PROXY_DATABASE_URL \
@@ -2205,7 +2203,7 @@ jobs:
-e DD_SITE=$DD_SITE \
-e GCS_FLUSH_INTERVAL="1" \
--name my-app \
- -v $(pwd)/litellm_config.yaml:/app/config.yaml \
+ -v $(pwd)/docker/build_from_pip/litellm_config.yaml:/app/config.yaml \
my-app:latest \
--config /app/config.yaml \
--port 4000 \
diff --git a/docker/build_from_pip/Dockerfile.build_from_pip b/docker/build_from_pip/Dockerfile.build_from_pip
index 33e8193d588..aeb19bce21f 100644
--- a/docker/build_from_pip/Dockerfile.build_from_pip
+++ b/docker/build_from_pip/Dockerfile.build_from_pip
@@ -13,12 +13,12 @@ RUN apk update && \
RUN python -m venv ${HOME}/venv
RUN ${HOME}/venv/bin/pip install --no-cache-dir --upgrade pip
-COPY requirements.txt .
+COPY docker/build_from_pip/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 .
+COPY schema.prisma .
# Generate prisma client
RUN prisma generate