mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-21 15:58:52 +00:00
* perf: 优化构建 * fix: 修正构建错误 * perf: 优化构建依赖包 * fix: 修正构建判断 * perf: 现阶段还需要 debug 工具 Co-authored-by: 吴小白 <296015668@qq.com>
11 lines
324 B
Plaintext
11 lines
324 B
Plaintext
ARG VERSION
|
|
FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} as build-xpack
|
|
FROM jumpserver/core:${VERSION}
|
|
COPY --from=build-xpack /opt/xpack /opt/jumpserver/apps/xpack
|
|
|
|
WORKDIR /opt/jumpserver
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
set -ex \
|
|
&& pip install -r requirements/requirements_xpack.txt
|