# Use the official Node.js image as the base image FROM node:20 # Set the working directory WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install bun -g RUN bun install # Copy the rest of the application code COPY . . # Build the Next.js application RUN bun run build # Expose the port the app runs on EXPOSE 3000 # Start the Next.js application CMD ["bun", "start"]