build: 尝试在GitHub Action构建

This commit is contained in:
liqiang-fit2cloud 2024-01-31 17:18:19 +08:00
parent f8d5fd6e49
commit d724f73fa3
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: main
- name: Prepare
id: prepare
run: |

View File

@ -19,10 +19,10 @@ USER root
# 创建工作目录
RUN mkdir -p /opt/maxkb/app && mkdir -p /opt/maxkb/model
# 拷贝项目
RUN ls -la
COPY . /opt/maxkb/app
COPY --from=vector-model-build model /opt/maxkb/app/model
COPY --from=web-build ui /opt/maxkb/app/ui
RUN ls -la /opt/maxkb/app
# 复制模型
RUN mv /opt/maxkb/app/model/* /opt/maxkb/model
RUN ls /opt/maxkb/model