perf: 优化镜像大小

This commit is contained in:
liqiang-fit2cloud 2024-03-25 15:07:14 +08:00
parent 8b8fc2c8b8
commit 76dbddebe5
2 changed files with 3 additions and 2 deletions

View File

@ -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 \

View File

@ -2,6 +2,7 @@ FROM postgres:15.6-bookworm
ARG DEPENDENCIES=" \
curl \
vim \
python3.11-mini \
python3.11-venv \
postgresql-15-pgvector"