perf: 优化构建 (#9179)

* perf: 优化构建

* fix: 修正构建错误

* perf: 优化构建依赖包

* fix: 修正构建判断

* perf: 现阶段还需要 debug 工具

Co-authored-by: 吴小白 <296015668@qq.com>
This commit is contained in:
fit2bot
2022-12-09 10:21:36 +08:00
committed by GitHub
parent beac2a1514
commit 0ae9b76f04
5 changed files with 48 additions and 44 deletions

View File

@@ -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} \