litellm/ui/Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
491 B
Docker
Raw Normal View History

# Use an official Node.js image as the base image
FROM node:18-alpine
2024-01-26 13:05:48 +08:00
# Set the working directory inside the container
2024-01-01 19:48:44 +08:00
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY ./litellm-dashboard/package*.json ./
# Install dependencies
RUN npm install
2024-01-01 19:48:44 +08:00
# Copy the rest of the application code to the working directory
COPY ./litellm-dashboard .
2024-01-01 19:48:44 +08:00
# Expose the port that the Next.js app will run on
EXPOSE 3000
2024-01-01 19:48:44 +08:00
# Start the Next.js app
CMD ["npm", "run", "dev"]