2024-01-30 08:43:25 +08:00
|
|
|
# Use an official Node.js image as the base image
|
|
|
|
|
FROM node:18-alpine
|
2024-01-26 13:05:48 +08:00
|
|
|
|
2024-01-30 08:43:25 +08:00
|
|
|
# Set the working directory inside the container
|
2024-01-01 19:48:44 +08:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
2024-01-30 08:43:25 +08:00
|
|
|
# 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
|
|
|
|
2024-01-30 08:43:25 +08:00
|
|
|
# Copy the rest of the application code to the working directory
|
|
|
|
|
COPY ./litellm-dashboard .
|
2024-01-01 19:48:44 +08:00
|
|
|
|
2024-01-30 08:43:25 +08:00
|
|
|
# Expose the port that the Next.js app will run on
|
|
|
|
|
EXPOSE 3000
|
2024-01-01 19:48:44 +08:00
|
|
|
|
2024-01-30 08:43:25 +08:00
|
|
|
# Start the Next.js app
|
|
|
|
|
CMD ["npm", "run", "dev"]
|