# Use the Node.js 20.13.1 base image FROM node:24.16.0 # Set the working directory inside the container WORKDIR /src # Copy package files and install dependencies COPY package*.json ./ RUN npm install # Copy the entire application code COPY . . # Build the application RUN npm run build # Expose the port your app runs on EXPOSE 3000 # Command to start the application CMD ["npm", "run", "start"]