# Use Node.js image FROM node:18-alpine # Create app directory WORKDIR /app # Install app dependencies COPY package*.json ./ RUN npm install # Bundle app source COPY . . # Build the app RUN npm run build # Expose port EXPOSE 3000 # Start the app CMD ["npm", "start"]