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]

(fix) clean up root repo - move entrypoint.sh and build_admin_ui to /docker (#6110)

Ishaan Jaffd1760b1b049d
diff --git a/.circleci/config.yml b/.circleci/config.yml
index d34cca9e02f..27fca82362e 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -69,11 +69,11 @@ jobs:
- ./venv
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
- run:
- name: Run prisma ./entrypoint.sh
+ name: Run prisma ./docker/entrypoint.sh
command: |
set +e
- chmod +x entrypoint.sh
- ./entrypoint.sh
+ chmod +x docker/entrypoint.sh
+ ./docker/entrypoint.sh
set -e
- run:
name: Black Formatting
@@ -128,11 +128,11 @@ jobs:
- ./venv
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
- run:
- name: Run prisma ./entrypoint.sh
+ name: Run prisma ./docker/entrypoint.sh
command: |
set +e
- chmod +x entrypoint.sh
- ./entrypoint.sh
+ chmod +x docker/entrypoint.sh
+ ./docker/entrypoint.sh
set -e
# Run pytest and generate JUnit XML report
- run:
diff --git a/Dockerfile b/Dockerfile
index 58dcfa9ac9d..a6127dd4e5d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
COPY . .
# Build Admin UI
-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Build the package
RUN rm -rf dist/* && python -m build
@@ -44,7 +44,7 @@ RUN pip uninstall PyJWT -y
RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Runtime stage
FROM $LITELLM_RUNTIME_IMAGE AS runtime
@@ -66,7 +66,7 @@ RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ && rm -f *.whl
# Generate prisma client
RUN prisma generate
-RUN chmod +x entrypoint.sh
+RUN chmod +x docker/entrypoint.sh
EXPOSE 4000/tcp
diff --git a/deploy/Dockerfile.ghcr_base b/deploy/Dockerfile.ghcr_base
index 691f08272a2..dbfe0a5a206 100644
--- a/deploy/Dockerfile.ghcr_base
+++ b/deploy/Dockerfile.ghcr_base
@@ -7,8 +7,8 @@ WORKDIR /app
# Copy the configuration file into the container at /app
COPY config.yaml .
-# Make sure your entrypoint.sh is executable
-RUN chmod +x entrypoint.sh
+# Make sure your docker/entrypoint.sh is executable
+RUN chmod +x docker/entrypoint.sh
# Expose the necessary port
EXPOSE 4000/tcp
diff --git a/docker/Dockerfile.custom_ui b/docker/Dockerfile.custom_ui
index 1bd28f650ba..7dee3c1f16a 100644
--- a/docker/Dockerfile.custom_ui
+++ b/docker/Dockerfile.custom_ui
@@ -31,8 +31,8 @@ RUN rm -rf /app/litellm/proxy/_experimental/out/* && \
# Switch back to the main app directory
WORKDIR /app
-# Make sure your entrypoint.sh is executable
-RUN chmod +x entrypoint.sh
+# Make sure your docker/entrypoint.sh is executable
+RUN chmod +x docker/entrypoint.sh
# Expose the necessary port
EXPOSE 4000/tcp
diff --git a/docker/Dockerfile.database b/docker/Dockerfile.database
index ecfa16e72a1..733a6f70aed 100644
--- a/docker/Dockerfile.database
+++ b/docker/Dockerfile.database
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
COPY . .
# Build Admin UI
-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Build the package
RUN rm -rf dist/* && python -m build
@@ -62,11 +62,11 @@ RUN pip uninstall PyJWT -y
RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Generate prisma client
RUN prisma generate
-RUN chmod +x entrypoint.sh
+RUN chmod +x docker/entrypoint.sh
EXPOSE 4000/tcp
diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root
index c3aba4b6534..d31c9e1b7e8 100644
--- a/docker/Dockerfile.non_root
+++ b/docker/Dockerfile.non_root
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
COPY . .
# Build Admin UI
-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Build the package
RUN rm -rf dist/* && python -m build
@@ -62,7 +62,7 @@ RUN pip uninstall PyJWT -y
RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Generate prisma client
ENV PRISMA_BINARY_CACHE_DIR=/app/prisma
@@ -71,7 +71,7 @@ RUN chmod -R 777 /.cache
RUN pip install nodejs-bin
RUN pip install prisma
RUN prisma generate
-RUN chmod +x entrypoint.sh
+RUN chmod +x docker/entrypoint.sh
EXPOSE 4000/tcp
diff --git a/build_admin_ui.sh b/docker/build_admin_ui.sh
similarity index 100%
rename from build_admin_ui.sh
rename to docker/build_admin_ui.sh
diff --git a/entrypoint.sh b/docker/entrypoint.sh
similarity index 100%
rename from entrypoint.sh
rename to docker/entrypoint.sh
diff --git a/docs/my-website/docs/proxy/deploy.md b/docs/my-website/docs/proxy/deploy.md
index 7389ba02280..659806a2d13 100644
--- a/docs/my-website/docs/proxy/deploy.md
+++ b/docs/my-website/docs/proxy/deploy.md
@@ -124,7 +124,7 @@ WORKDIR /app
# Copy the configuration file into the container at /app
COPY config.yaml .
-# Make sure your entrypoint.sh is executable
+# Make sure your docker/entrypoint.sh is executable
RUN chmod +x entrypoint.sh
# Expose the necessary port
diff --git a/tests/test_entrypoint.py b/tests/test_entrypoint.py
index 8a6708545ec..3ac20ea3ab2 100644
--- a/tests/test_entrypoint.py
+++ b/tests/test_entrypoint.py
@@ -1,5 +1,5 @@
# What is this?
-## Unit tests for 'entrypoint.sh'
+## Unit tests for 'docker/entrypoint.sh'
import pytest
import sys
@@ -35,7 +35,7 @@ def test_entrypoint_decrypt_and_reset():
os.environ["DATABASE_URL"] = (
"aws_kms/AQICAHgwddjZ9xjVaZ9CNCG8smFU6FiQvfdrjL12DIqi9vUAQwHwF6U7caMgHQa6tK+TzaoMAAAAzjCBywYJKoZIhvcNAQcGoIG9MIG6AgEAMIG0BgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDCmu+DVeKTm5tFZu6AIBEICBhnOFQYviL8JsciGk0bZsn9pfzeYWtNkVXEsl01AdgHBqT9UOZOI4ZC+T3wO/fXA7wdNF4o8ASPDbVZ34ZFdBs8xt4LKp9niufL30WYBkuuzz89ztly0jvE9pZ8L6BMw0ATTaMgIweVtVSDCeCzEb5PUPyxt4QayrlYHBGrNH5Aq/axFTe0La"
)
- command = "./entrypoint.sh"
+ command = "./docker/entrypoint.sh"
directory = ".." # Relative to the current directory
# Run the command using subprocess