docker/prod/nodejs_v2/Dockerfile
FROM node:12.2.0 as node
ARG NODE_ENV
RUN npm install -g @angular/cli@7.3.9
WORKDIR /code
COPY frontend_v2/package.json frontend_v2/yarn.lock /code/
RUN npm update
RUN yarn install
ENV PATH="/code/node_modules/.bin:$PATH"
COPY frontend_v2/ /code
RUN ng build --prod --configuration=${NODE_ENV}
FROM nginx:1.13.12-alpine
ARG NODE_ENV
COPY docker/prod/nodejs_v2/nginx_${NODE_ENV}.conf /etc/nginx/conf.d/default.conf
COPY --from=node /code/dist /usr/share/nginx/html
COPY /ssl /etc/ssl