mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-21 15:58:52 +00:00
perf: 优化构建 (#9179)
* perf: 优化构建 * fix: 修正构建错误 * perf: 优化构建依赖包 * fix: 修正构建判断 * perf: 现阶段还需要 debug 工具 Co-authored-by: 吴小白 <296015668@qq.com>
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -18,7 +18,6 @@ ARG BUILD_DEPENDENCIES=" \
|
||||
pkg-config"
|
||||
|
||||
ARG DEPENDENCIES=" \
|
||||
default-libmysqlclient-dev \
|
||||
freetds-dev \
|
||||
libpq-dev \
|
||||
libffi-dev \
|
||||
@@ -28,20 +27,15 @@ ARG DEPENDENCIES=" \
|
||||
libxml2-dev \
|
||||
libxmlsec1-dev \
|
||||
libxmlsec1-openssl \
|
||||
libaio-dev \
|
||||
openssh-client \
|
||||
sshpass"
|
||||
libaio-dev"
|
||||
|
||||
ARG TOOLS=" \
|
||||
ca-certificates \
|
||||
curl \
|
||||
default-mysql-client \
|
||||
iputils-ping \
|
||||
default-libmysqlclient-dev \
|
||||
locales \
|
||||
procps \
|
||||
redis-tools \
|
||||
openssh-client \
|
||||
sshpass \
|
||||
telnet \
|
||||
vim \
|
||||
unzip \
|
||||
wget"
|
||||
|
||||
@@ -82,6 +76,8 @@ ENV PIP_MIRROR=$PIP_MIRROR
|
||||
ARG PIP_JMS_MIRROR=https://pypi.douban.com/simple
|
||||
ENV PIP_JMS_MIRROR=$PIP_JMS_MIRROR
|
||||
|
||||
ARG DEBUG
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
set -ex \
|
||||
&& pip config set global.index-url ${PIP_MIRROR} \
|
||||
|
Reference in New Issue
Block a user