From 12d12a6573aba8adb5207f76948a15d45c42977d Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 28 Sep 2024 19:03:40 -0700 Subject: [PATCH] refactor: cleanup root of repo --- Dockerfile.custom_ui | 41 ------------------- .../check_file_length.py | 0 2 files changed, 41 deletions(-) delete mode 100644 Dockerfile.custom_ui rename check_file_length.py => ci_cd/check_file_length.py (100%) diff --git a/Dockerfile.custom_ui b/Dockerfile.custom_ui deleted file mode 100644 index 1bd28f650b..0000000000 --- a/Dockerfile.custom_ui +++ /dev/null @@ -1,41 +0,0 @@ -# Use the provided base image -FROM ghcr.io/berriai/litellm:litellm_fwd_server_root_path-dev - -# Set the working directory to /app -WORKDIR /app - -# Install Node.js and npm (adjust version as needed) -RUN apt-get update && apt-get install -y nodejs npm - -# Copy the UI source into the container -COPY ./ui/litellm-dashboard /app/ui/litellm-dashboard - -# Set an environment variable for UI_BASE_PATH -# This can be overridden at build time -# set UI_BASE_PATH to "/ui" -ENV UI_BASE_PATH="/prod/ui" - -# Build the UI with the specified UI_BASE_PATH -WORKDIR /app/ui/litellm-dashboard -RUN npm install -RUN UI_BASE_PATH=$UI_BASE_PATH npm run build - -# Create the destination directory -RUN mkdir -p /app/litellm/proxy/_experimental/out - -# Move the built files to the appropriate location -# Assuming the build output is in ./out directory -RUN rm -rf /app/litellm/proxy/_experimental/out/* && \ - mv ./out/* /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 - -# Expose the necessary port -EXPOSE 4000/tcp - -# Override the CMD instruction with your desired command and arguments -CMD ["--port", "4000", "--config", "config.yaml", "--detailed_debug"] \ No newline at end of file diff --git a/check_file_length.py b/ci_cd/check_file_length.py similarity index 100% rename from check_file_length.py rename to ci_cd/check_file_length.py