FROM node:20-alpine # Set the working directory inside the container WORKDIR /app # Copy package files first (better for Docker caching) COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of your code (server.js, etc.) COPY . . # Run the app CMD ["npm", "start"]