20 lines
434 B
Docker
20 lines
434 B
Docker
# Use the official Node.js image as the base image
|
|
FROM node:22-slim
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json to the working directory
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the application code to the working directory
|
|
COPY . .
|
|
|
|
# Expose the port for the dashboard
|
|
EXPOSE 8000
|
|
|
|
# Start the dashboard
|
|
CMD ["npm", "run", "dev"] |