vuepress-theme-reco的依赖预下载镜像,方便自动化构建
在预下载镜像中我新增了git和uuid依赖
构建Dockerfile示例
version以rc.22为例
FROM buyfakett/node:20-vuepress-theme-reco-${version} as build
WORKDIR /app
COPY . /app
RUN npm run build
# 打包结果在/app/.vuepress/dist/
FROM buyfakett/docker-static-website as runner
COPY --from=build /app/.vuepress/dist/ .