| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | # Stage 0, "build-stage", based on Node.js, to build and compile the frontendFROM node:19 as build-stage# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer# installs, work.RUN apt-get update && apt-get install -y wget --no-install-recommends \    && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \    && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \    && apt-get update \    && apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \      --no-install-recommends \    && rm -rf /var/lib/apt/lists/* \    && apt-get purge --auto-remove -y curl \    && rm -rf /src/*.debWORKDIR /appRUN npm install puppeteerCOPY package*.json /app/RUN npm installCOPY ./ /app/ARG FRONTEND_ENV=productionENV VUE_APP_ENV=${FRONTEND_ENV}# Comment out the next line to disable tests#RUN npm run test:unitRUN npm run build# Stage 1, based on Nginx, to have only the compiled app, ready for production with NginxFROM nginx:1.23COPY --from=build-stage /app/dist/ /usr/share/nginx/htmlCOPY --from=build-stage /app/googlee455ea492ff4b8ca.html /usr/share/nginx/html/googlee455ea492ff4b8ca.htmlCOPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.confCOPY --from=build-stage /app/nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf
 |