11 lines
500 B
Docker
11 lines
500 B
Docker
FROM registry.odit.services/hub/library/node:16.15.1-alpine3.16 AS build
|
|
WORKDIR /app
|
|
COPY package.json *.config.cjs *.config.js ./
|
|
RUN npm config set registry https://$NPM_REGISTRY_DOMAIN && npm config set //$NPM_REGISTRY_DOMAIN/:_authToken $NPM_REGISTRY_TOKEN
|
|
RUN npm i -g pnpm && pnpm i
|
|
COPY . ./
|
|
RUN pnpm build
|
|
# final image
|
|
FROM registry.odit.services/library/nginx-brotli:3.15.130
|
|
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf |