mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 16:12:55 +00:00
build: reuse v1.0.1 image.
This commit is contained in:
parent
1daf84e954
commit
86489f4b25
|
|
@ -5,7 +5,7 @@ on:
|
|||
inputs:
|
||||
dockerImageTag:
|
||||
description: 'Docker Image Tag'
|
||||
default: 'v2.0.0'
|
||||
default: 'v2.0.1'
|
||||
required: true
|
||||
architecture:
|
||||
description: 'Architecture'
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
FROM ghcr.io/1panel-dev/maxkb-vector-model:v1.0.1 AS vector-model
|
||||
|
||||
#FROM python:3.11-slim-bookworm AS vector-model
|
||||
#COPY installer/install_model.py install_model.py
|
||||
#RUN pip3 install --upgrade pip setuptools && \
|
||||
# pip install pycrawlers && \
|
||||
# pip install transformers && \
|
||||
# python3 install_model.py && \
|
||||
# cp -r model/base/hub model/tokenizer
|
||||
#FROM scratch
|
||||
#COPY --from=vector-model model /opt/maxkb-app/model
|
||||
|
||||
# 不知道为什么用上面的脚本重新拉一遍向量模型比之前的大很多,所以还是用下面的脚本复用原来已经构建好的向量模型
|
||||
|
||||
FROM ghcr.io/1panel-dev/maxkb-vector-model:v1.0.1 AS vector-model
|
||||
FROM scratch
|
||||
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb-app/model
|
||||
COPY --from=vector-model /opt/maxkb/app/model/base/hub /opt/maxkb-app/model/tokenizer
|
||||
Loading…
Reference in New Issue