1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- FROM node:19 as build-stage
- 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/*.deb
- WORKDIR /app
- RUN npm install puppeteer
- COPY package*.json /app/
- RUN npm install
- COPY ./ /app/
- ARG FRONTEND_ENV=production
- ENV VUE_APP_ENV=${FRONTEND_ENV}
- RUN npm run build
- FROM nginx:1.23
- COPY --from=build-stage /app/dist/ /usr/share/nginx/html
- COPY --from=build-stage /app/googlee455ea492ff4b8ca.html /usr/share/nginx/html/googlee455ea492ff4b8ca.html
- COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf
- COPY --from=build-stage /app/nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf
|