This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend | |
FROM node:10.8.0 as build-stage | |
WORKDIR /app | |
COPY package*.json /app/ | |
RUN npm install | |
COPY ./ /app/ | |
ARG configuration=production | |
RUN npm run build -- --output-path=./dist/out --configuration $configuration | |
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx |