# Use a Node.js base image FROM node:18-alpine # Set the working directory inside the container WORKDIR /app # Copy package.json and package-lock.json to the working directory COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of your application code COPY . . # Expose the port your Node.js app listens on (e.g., 8080) EXPOSE 3000 # Command to run your Node.js application CMD ["node", "server.js"]