forked from phoenix/litellm-mirror
build(ui/Dockerfile): point to new litellm-dashboard for self hosted ui
This commit is contained in:
parent
1102863ca8
commit
7714023da3
1 changed files with 14 additions and 14 deletions
|
@ -1,20 +1,20 @@
|
||||||
# Use official Python base image
|
# Use an official Node.js image as the base image
|
||||||
FROM python:3.9.12
|
FROM node:18-alpine
|
||||||
|
|
||||||
EXPOSE 8501
|
# Set the working directory inside the container
|
||||||
|
|
||||||
# Set the working directory in the container
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the requirements.txt file to the container
|
# Copy package.json and package-lock.json to the working directory
|
||||||
COPY requirements.txt .
|
COPY ./litellm-dashboard/package*.json ./
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN npm install
|
||||||
|
|
||||||
# Copy the entire project directory to the container
|
# Copy the rest of the application code to the working directory
|
||||||
COPY admin.py .
|
COPY ./litellm-dashboard .
|
||||||
|
|
||||||
# Set the entrypoint command to run admin.py with Streamlit
|
# Expose the port that the Next.js app will run on
|
||||||
ENTRYPOINT [ "streamlit", "run"]
|
EXPOSE 3000
|
||||||
CMD ["admin.py"]
|
|
||||||
|
# Start the Next.js app
|
||||||
|
CMD ["npm", "run", "dev"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue