FROM node:alpine As builder WORKDIR /app COPY package.json package-lock.json ./ RUN npm install # COPY . . RUN npm run build --prod FROM nginx:latest COPY dist/angular-starter /usr/share/nginx/html COPY config/default.conf /etc/nginx/conf.d/default.conf # COPY --from=builder /usr/src/app/dist/angular-starter/ /usr/share/nginx/html