FROM node:latest WORKDIR /api # copy package.json into the container at /api COPY package*.json /api/ # install dependencies RUN npm install # Copy the current directory contents into the container at /api COPY . /api/ # Make port 80 available to the world outside this container EXPOSE 80 # Run the app when the container launches CMD ["npm", "start"]