# Use the official Node.js 14 base image FROM node:14 # Set the working directory in the container WORKDIR /app # Copy the package.json and package-lock.json files to the container COPY package*.json ./ # Install the application dependencies RUN npm install # Copy the rest of the application code to the container COPY . . # Build the application RUN npm run build # Expose the port that the application will run on EXPOSE 3000 # Start the application CMD ["npm", "start"]