Updated ssr option for SEO.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2021-12-08 12:25:06 +04:00
parent 347edeea90
commit 42ba9ee707
7 changed files with 47 additions and 561 deletions

View File

@ -1,11 +1,12 @@
FROM node:lts-alpine3.14 as builder
COPY . /app
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
RUN yarn generate
FROM nginx:1.20.2-alpine
COPY . /app
COPY --from=builder /app/dist/ /usr/share/nginx/html/
RUN yarn build
CMD ["yarn", "start", "-p", "80"]