# Use the official Node.js image FROM node:18 # Set working directory inside the container WORKDIR /app # Copy package.json and install dependencies COPY package*.json ./ RUN npm install # Copy the rest of the app code COPY . . # Expose the port EXPOSE 8080 # Run the app CMD ["npm", "start"]