perf: 按照需求添加 core-ce 镜像

This commit is contained in:
吴小白
2023-10-16 13:30:51 +08:00
parent 0a28c5650c
commit edd65f965b
2 changed files with 58 additions and 24 deletions

View File

@@ -1,9 +1,5 @@
ARG VERSION
FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} as build-xpack
FROM jumpserver/core:${VERSION}
FROM registry.fit2cloud.com/jumpserver/core-ce:${VERSION}
COPY --from=build-xpack /opt/xpack /opt/jumpserver/apps/xpack
RUN --mount=type=cache,target=/root/.cache \
set -ex \
&& poetry install --only=xpack
COPY --from=build-xpack /opt/xpack /opt/jumpserver/apps/xpack