FROM node:lts-alpine AS build-env WORKDIR /app COPY ./package.json ./ COPY ./package-lock.json ./ RUN npm ci COPY ./ ./ ARG ARG_APP_VERSION ENV APP_VERSION=$ARG_APP_VERSION RUN npm version -no-git-tag-version $APP_VERSION RUN node ./node_modules/@angular/cli/bin/ng build mastolists --configuration=production FROM nginx:alpine LABEL author="Novaloop AG" COPY --from=build-env /app/dist/mastolists /usr/share/nginx/html COPY ./deployment/nginx.conf /etc/nginx/conf.d/default.conf