# Specify the base image FROM node:24 # Set the working directory in the container WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install app dependencies RUN npm install # Bundle app source COPY . . # Expose port EXPOSE 3000 # Start the app CMD [ "node", "backend.js" ]