# Use a base Node.js image FROM node:18 # Set the working directory WORKDIR /usr/src/app # Copy package.json and package-lock.json files COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application files COPY . . # Expose the port the app runs on EXPOSE 3000 # Command to start the application CMD ["node", "server.js"]