mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
perf: 优化镜像大小
This commit is contained in:
parent
8b8fc2c8b8
commit
76dbddebe5
|
|
@ -35,10 +35,10 @@ ARG DOCKER_IMAGE_TAG=dev \
|
|||
GITHUB_COMMIT
|
||||
|
||||
ENV MAXKB_VERSION ${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_COMMIT})
|
||||
|
||||
WORKDIR /opt/maxkb/app
|
||||
COPY --from=stage-build /opt/maxkb /opt/maxkb
|
||||
COPY --from=stage-build /opt/py3 /opt/py3
|
||||
COPY --from=web-build ui /opt/maxkb/app/ui
|
||||
COPY --from=stage-build /opt/maxkb /opt/maxkb
|
||||
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb/app/model
|
||||
|
||||
ENV LANG=en_US.UTF-8 \
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ FROM postgres:15.6-bookworm
|
|||
|
||||
ARG DEPENDENCIES=" \
|
||||
curl \
|
||||
vim \
|
||||
python3.11-mini \
|
||||
python3.11-venv \
|
||||
postgresql-15-pgvector"
|
||||
|
|
|
|||
Loading…
Reference in New Issue