You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
477 B
Docker

FROM node:16-alpine AS build
WORKDIR /var/www
RUN apk add --no-cache \
yarn
COPY . .
# Run dependencies needed to build API Reference
RUN yarn install
# Build docs
RUN cd docs \
&& yarn install \
&& sed -i "s/base: '\/',/base: '\/integration-boilerplate\/',/g" ./.vuepress/config.js \
&& cat ./.vuepress/config.js \
&& yarn api-extract \
&& yarn build
FROM nginx
COPY --from=build /var/www/docs/.vuepress/dist /usr/share/nginx/html/integration-boilerplate