mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
build: 尝试在GitHub Action构建
This commit is contained in:
parent
f8d5fd6e49
commit
d724f73fa3
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue