perf: use prebuild gmssl image

This commit is contained in:
Eric
2026-06-10 11:03:54 +08:00
parent 98826222f6
commit ba6ba2356e

View File

@@ -1,27 +1,5 @@
ARG VERSION=dev
FROM python:3.14-slim-trixie AS gmssl-builder
WORKDIR /app
ARG GMSSL_VERSION=3.1.1
RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
git \
cmake \
make \
gcc \
g++ \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN set -ex \
&& git clone --branch v${GMSSL_VERSION} https://github.com/guanzhi/GmSSL.git \
&& cd GmSSL \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& make -j"$(nproc)" \
&& make install
FROM jumpserver/gmssl:3.1.1-trixie AS gmssl-builder
FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} AS build-xpack
FROM jumpserver/core:${VERSION}-ce
@@ -44,8 +22,6 @@ 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/