This commit is contained in:
parent
6993366815
commit
cfcee23dc0
|
|
@ -0,0 +1,11 @@
|
|||
node_modules
|
||||
apps/api
|
||||
apps/migrant
|
||||
apps/staffai
|
||||
build
|
||||
nginx
|
||||
admin-v5
|
||||
test
|
||||
README.md
|
||||
*.log
|
||||
*.md
|
||||
|
|
@ -10,21 +10,13 @@
|
|||
# 安装 pnpm
|
||||
RUN npm install -g pnpm
|
||||
|
||||
# 复制依赖声明文件
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
|
||||
# 复制整项目的代码,排除了.dockerignore中的文件
|
||||
COPY . ./
|
||||
|
||||
# 安装根目录依赖
|
||||
RUN pnpm install --no-frozen-lockfile --prefer-offline
|
||||
|
||||
# 只复制子项目 blogai 和必要源码
|
||||
COPY apps/blogai ./apps/blogai
|
||||
COPY packages ./packages
|
||||
COPY internal ./internal
|
||||
COPY tools ./tools
|
||||
COPY index.html ./index.html
|
||||
COPY openapi.json ./openapi.json
|
||||
COPY tsconfig.json ./tsconfig.json
|
||||
|
||||
|
||||
# 编译子项目 apps/blogai
|
||||
RUN pnpm turbo run build --filter=apps/blogai
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue