# Use a small official Node.js image. FROM node:22-alpine # Set the working directory inside the container. WORKDIR /app # Copy package files first so Docker can cache dependency installs. COPY package*.json ./ # Install production dependencies only. RUN npm ci --omit=dev # Copy the rest of the project files. COPY . . # Document the port used by the application. EXPOSE 3001 # Start the Node.js server. CMD ["npm", "start"]