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
15
15
ENV PNPM_HOME="/pnpm"
16
16
ENV PATH="$PNPM_HOME:$PATH"
17
17
18
- # # corepack 环境变量
18
+ # # corepack 环境变量,在CI脚本中直接设置
19
19
# ENV COREPACK_NPM_REGISTRY=https://mirrors.tencent.com/npm/
20
20
21
21
WORKDIR /apps
22
22
COPY . .
23
23
24
- RUN ls
24
+ # # 安装git,博客编译需要使用git信息
25
+ RUN apk add --no-cache git --repository http://mirrors.aliyun.com/alpine/v3.14/main/
25
26
26
27
# # 基于容器自动构建
27
28
RUN --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 \
51
52
LABEL "git.hash" ="$GIT_HASH"
52
53
53
54
# 将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 {
41
41
[ 'HOME_PAGE' , pkg . authorInfo . homePage ] ,
42
42
[ 'GIT_HASH' , gitHash ] ,
43
43
] ,
44
+ memory :20000 ,
44
45
push : true ,
45
46
delete : true ,
46
47
logger : true ,
You can’t perform that action at this time.
0 commit comments