mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-01 22:49:06 +00:00
perf: use prebuild gmssl image
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user