# Use the official Node.js 14 image. | |
FROM node:14 | |
# Create and change to the app directory. | |
WORKDIR /usr/src/app | |
# Copy application dependency manifests to the container image. | |
COPY package.json ./ | |
COPY package-lock.json ./ | |
# Install production dependencies. | |
RUN npm install | |
# Copy local code to the container image. | |
COPY . ./ | |
# Run the web service on container startup. | |
CMD [ "node", "server" ] | |