# Use the official Node.js image FROM node:14 # Create and set the working directory WORKDIR /usr/src/app # Copy package.json and package-lock.json to the working directory COPY package*.json ./ # Install dependencies RUN npm install # Copy the server.js file to the working directory COPY server.js . # Expose the port the app runs on EXPOSE 3000 # Command to run the application CMD ["node", "server.js"]