File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ ARG NEED_PROXY=false
1515ENV PNPM_HOME="/pnpm"
1616ENV PATH="$PNPM_HOME:$PATH"
1717
18- # # corepack 环境变量
18+ # # corepack 环境变量,在CI脚本中直接设置
1919# ENV COREPACK_NPM_REGISTRY=https://mirrors.tencent.com/npm/
2020
2121WORKDIR /apps
2222COPY . .
2323
24- RUN ls
24+ # # 安装git,博客编译需要使用git信息
25+ RUN apk add --no-cache git --repository http://mirrors.aliyun.com/alpine/v3.14/main/
2526
2627# # 基于容器自动构建
2728RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && if [ "$NEED_PROXY" = "false" ]; \
@@ -51,5 +52,5 @@ LABEL "repo.name"=$APP_NAME "repo.version"=$APP_VERSION \
5152LABEL "git.hash" ="$GIT_HASH"
5253
5354# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数
54- COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/
55- COPY nginx.conf /etc/nginx/
55+ COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/
56+ COPY --from=build_base /apps/ nginx.conf /etc/nginx/
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import {
4141 [ 'HOME_PAGE' , pkg . authorInfo . homePage ] ,
4242 [ 'GIT_HASH' , gitHash ] ,
4343 ] ,
44+ memory :20000 ,
4445 push : true ,
4546 delete : true ,
4647 logger : true ,
You can’t perform that action at this time.
0 commit comments