Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:20.17.0-alpine AS build_base

# 是否
# 是否配置代理
ARG NEED_PROXY=false

## 设置环境变量,支持容器构建时使用layer缓存,参考:https://pnpm.io/zh/docker
Expand All @@ -25,11 +25,12 @@ COPY . .
RUN apk add --no-cache git --repository http://mirrors.aliyun.com/alpine/v3.14/main/

## 基于容器自动构建
RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && if [ "$NEED_PROXY" = "false" ]; \
then \
pnpm build; \
else \
pnpm build:proxy; \
RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && \
if [ "$NEED_PROXY" = "false" ]; \
then \
pnpm build; \
else \
pnpm build:proxy; \
fi;


Expand All @@ -48,7 +49,7 @@ ARG GIT_HASH
# 作者信息 & 项目信息 & Git信息
LABEL "maintainer"="$AUTHOR <$EMAIL>"
LABEL "repo.name"=$APP_NAME "repo.version"=$APP_VERSION \
"repo.description"="$DESCRIPTION" "repo.homePage"="$HOME_PAGE"
"repo.description"="$APP_DESCRIPTION" "repo.homePage"="$HOME_PAGE"
LABEL "git.hash"="$GIT_HASH"

# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数
Expand Down
2 changes: 2 additions & 0 deletions docs/.vuepress/styles/config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ $code-dark-theme: 'atom-dark';

// 主题色 配合outlook显示
//$theme-colors: #2196f3, #f26d6d, #3eaf7c, #fb9b5f;

$theme-color: #fb9b5f
5 changes: 0 additions & 5 deletions docs/.vuepress/theme/READEME.md

This file was deleted.

95 changes: 0 additions & 95 deletions docs/.vuepress/theme/constant.ts

This file was deleted.

25 changes: 0 additions & 25 deletions docs/.vuepress/theme/headers.ts

This file was deleted.

102 changes: 0 additions & 102 deletions docs/.vuepress/theme/i18n.ts

This file was deleted.

32 changes: 0 additions & 32 deletions docs/.vuepress/theme/layouts/NotFound.vue

This file was deleted.

78 changes: 0 additions & 78 deletions docs/.vuepress/theme/navbar.ts

This file was deleted.

Loading