perf: 优化镜像大小
This commit is contained in:
parent
8b8fc2c8b8
commit
76dbddebe5
@ -35,10 +35,10 @@ ARG DOCKER_IMAGE_TAG=dev \
|
|||||||
GITHUB_COMMIT
|
GITHUB_COMMIT
|
||||||
|
|
||||||
ENV MAXKB_VERSION ${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${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=stage-build /opt/py3 /opt/py3
|
||||||
COPY --from=web-build ui /opt/maxkb/app/ui
|
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
|
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb/app/model
|
||||||
|
|
||||||
ENV LANG=en_US.UTF-8 \
|
ENV LANG=en_US.UTF-8 \
|
||||||
|
|||||||
@ -2,6 +2,7 @@ FROM postgres:15.6-bookworm
|
|||||||
|
|
||||||
ARG DEPENDENCIES=" \
|
ARG DEPENDENCIES=" \
|
||||||
curl \
|
curl \
|
||||||
|
vim \
|
||||||
python3.11-mini \
|
python3.11-mini \
|
||||||
python3.11-venv \
|
python3.11-venv \
|
||||||
postgresql-15-pgvector"
|
postgresql-15-pgvector"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user