# Use Node.js 22.11.0 as the base image FROM node:22.11.0 # Set the working directory WORKDIR /app # Copy package.json and package-lock.json (if any) COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the app COPY . . # Expose the default Next.js port EXPOSE 3000 # Start the dev server CMD ["npm", "run", "dev"]