build(ui/Dockerfile): point to new litellm-dashboard for self hosted ui

This commit is contained in:
Krrish Dholakia 2024-01-29 16:43:25 -08:00
parent 1102863ca8
commit 7714023da3

View file

@ -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"]
# Expose the port that the Next.js app will run on
EXPOSE 3000
# Start the Next.js app
CMD ["npm", "run", "dev"]