<filename>cicd/Dockerfile<gh_stars>1-10
FROM node:14.4.0
MAINTAINER <NAME> <EMAIL>

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Installing dependencies
COPY package*.json /usr/src/app/
RUN npm install

# Copying source files
COPY . /usr/src/app

# Building app
RUN npm run build

# Environment
ENV NODE_ENV production

# Running the app
CMD ["node", "build/server.js"]