Files
jumpserver/Dockerfile-ee
2026-05-25 16:57:46 +08:00

37 lines
1.1 KiB
Plaintext

ARG VERSION=dev
FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} AS build-xpack
FROM jumpserver/core:${VERSION}-ce
COPY --from=build-xpack /opt/xpack /opt/jumpserver/apps/xpack
ARG TOOLS=" \
g++ \
iputils-ping \
netcat-openbsd \
telnet"
RUN set -ex \
&& apt-get update \
&& apt-get -y install --no-install-recommends ${TOOLS} \
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/jumpserver
ARG PIP_MIRROR=https://pypi.org/simple
ARG GMSSL_VERSION=3.1.1
RUN set -ex \
&& uv pip install -i${PIP_MIRROR} --group xpack \
&& rm -rf /root/.cache/
RUN set -ex \
&& curl -fsSL -o /tmp/gmssl-install.sh \
"https://github.com/guanzhi/GmSSL/releases/download/v${GMSSL_VERSION}/GmSSL-${GMSSL_VERSION}-Linux.sh" \
&& chmod +x /tmp/gmssl-install.sh \
&& /tmp/gmssl-install.sh --prefix=/usr/local \
&& echo "/usr/local/GmSSL-${GMSSL_VERSION}-Linux/lib" > /etc/ld.so.conf.d/gmssl.conf \
&& ldconfig \
&& rm -f /tmp/gmssl-install.sh