File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM python:3.11-slim-bookworm AS vector-model
1
+ FROM ghcr.io/1panel-dev/maxkb-vector-model:v1.0.1 AS vector-model
2
2
3
- COPY installer/install_model.py install_model.py
4
- RUN pip3 install --upgrade pip setuptools && \
5
- pip install pycrawlers && \
6
- pip install transformers && \
7
- python3 install_model.py && \
8
- cp -r model/base/hub model/tokenizer
3
+ #COPY installer/install_model.py install_model.py
4
+ #RUN pip3 install --upgrade pip setuptools && \
5
+ # pip install pycrawlers && \
6
+ # pip install transformers && \
7
+ # python3 install_model.py && \
8
+ # cp -r model/base/hub model/tokenizer
9
+ RUN cp -r /opt/maxkb/app/model/base/hub /opt/maxkb/app/model/tokenizer
9
10
10
11
FROM scratch
11
- COPY --from=vector-model model /opt/maxkb-app/model
12
+ COPY --from=vector-model /opt/maxkb/app/ model /opt/maxkb-app/model
You can’t perform that action at this time.
0 commit comments