diff --git a/ui/Dockerfile b/ui/Dockerfile index 97065943f3f..28c9f195edf 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"]