From 7714023da354ad268b8b75257ac1e7e843c79fb0 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 29 Jan 2024 16:43:25 -0800 Subject: [PATCH] build(ui/Dockerfile): point to new litellm-dashboard for self hosted ui --- ui/Dockerfile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ui/Dockerfile b/ui/Dockerfile index 97065943f..28c9f195e 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -1,20 +1,20 @@ -# Use official Python base image -FROM python:3.9.12 +# Use an official Node.js image as the base image +FROM node:18-alpine -EXPOSE 8501 - -# Set the working directory in the container +# Set the working directory inside the container WORKDIR /app -# Copy the requirements.txt file to the container -COPY requirements.txt . +# Copy package.json and package-lock.json to the working directory +COPY ./litellm-dashboard/package*.json ./ -# Install Python dependencies -RUN pip install --no-cache-dir -r requirements.txt +# Install dependencies +RUN npm install -# Copy the entire project directory to the container -COPY admin.py . +# Copy the rest of the application code to the working directory +COPY ./litellm-dashboard . -# Set the entrypoint command to run admin.py with Streamlit -ENTRYPOINT [ "streamlit", "run"] -CMD ["admin.py"] \ No newline at end of file +# Expose the port that the Next.js app will run on +EXPOSE 3000 + +# Start the Next.js app +CMD ["npm", "run", "dev"]