Newer
Older
# Stage 0, based on Node.js, to build and compile Angular
FROM node:8.10.0 as builder
# Copy the package.json file first in order to cache the modules
COPY ./package.json /app/package.json
WORKDIR /app
# Install npm dependencies
RUN npm install
# Copy the project
COPY . /app
FORESTIER Fabien
committed
ARG env
FORESTIER Fabien
committed
RUN npm run build:${env}