diff --git a/docs/Dockerfile b/docs/Dockerfile new file mode 100644 index 000000000..478cfb68e --- /dev/null +++ b/docs/Dockerfile @@ -0,0 +1,12 @@ +FROM node:alpine AS builder +WORKDIR /app +COPY package.json yarn.lock ./ +RUN yarn install +COPY . . +RUN yarn run build + +FROM nginx:alpine +RUN rm -rf /usr/share/nginx/html/* +COPY --from=builder /app/.vuepress/dist /usr/share/nginx/html/docs +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file