14 lines
469 B
Docker
14 lines
469 B
Docker
FROM registry.odit.services/hub/library/node:16-alpine3.16 AS build
|
|
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
|
|
WORKDIR /app
|
|
|
|
COPY package.json *.config.cjs *.config.js ./
|
|
RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@7.29.3
|
|
RUN pnpm i
|
|
COPY . ./
|
|
RUN pnpm build
|
|
|
|
# final image
|
|
FROM registry.odit.services/library/nginx-brotli:latest
|
|
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf |