docs/Dockerfile
Philipp Dormann 40e779ff8f
Some checks failed
ci/woodpecker/push/build Pipeline failed
chore(deps): node:18.10.0
2023-11-06 19:30:45 +01:00

14 lines
476 B
Docker

FROM registry.odit.services/hub/library/node:18.10.0-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:3.15.130
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf