Skip to content

Commit 86489f4

Browse files
build: reuse v1.0.1 image.
1 parent 1daf84e commit 86489f4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/build-and-push-vector-model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
dockerImageTag:
77
description: 'Docker Image Tag'
8-
default: 'v2.0.0'
8+
default: 'v2.0.1'
99
required: true
1010
architecture:
1111
description: 'Architecture'

installer/Dockerfile-vector-model

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
FROM ghcr.io/1panel-dev/maxkb-vector-model:v1.0.1 AS vector-model
2-
1+
#FROM python:3.11-slim-bookworm AS vector-model
32
#COPY installer/install_model.py install_model.py
43
#RUN pip3 install --upgrade pip setuptools && \
54
# pip install pycrawlers && \
65
# pip install transformers && \
76
# python3 install_model.py && \
87
# cp -r model/base/hub model/tokenizer
8+
#FROM scratch
9+
#COPY --from=vector-model model /opt/maxkb-app/model
910

11+
# 不知道为什么用上面的脚本重新拉一遍向量模型比之前的大很多,所以还是用下面的脚本复用原来已经构建好的向量模型
12+
13+
FROM ghcr.io/1panel-dev/maxkb-vector-model:v1.0.1 AS vector-model
1014
FROM scratch
1115
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb-app/model
1216
COPY --from=vector-model /opt/maxkb/app/model/base/hub /opt/maxkb-app/model/tokenizer

0 commit comments

Comments
 (0)