build: reuse v1.0.1 image.
This commit is contained in:
parent
30c4849ae4
commit
9ddee4e70f
@ -6,7 +6,7 @@ FROM ghcr.io/1panel-dev/maxkb-vector-model:v1.0.1 AS vector-model
|
|||||||
# pip install transformers && \
|
# pip install transformers && \
|
||||||
# python3 install_model.py && \
|
# python3 install_model.py && \
|
||||||
# cp -r model/base/hub model/tokenizer
|
# cp -r model/base/hub model/tokenizer
|
||||||
RUN cp -r /opt/maxkb/app/model/base/hub /opt/maxkb/app/model/tokenizer
|
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb-app/model
|
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
Block a user