# Use the official Node.js 14 image as the base FROM node:14 # Set the working directory in the container WORKDIR /app # Copy package.json and package-lock.json to the container COPY package*.json ./ # Install project dependencies RUN npm install # Copy the rest of the application code to the container COPY . . # Expose the port on which your Express app listens EXPOSE 4000 # Start the application in development mode CMD ["npm", "run", "dev"]