fix: Dockerfile 中 RUN yum 前加 set -e,安装失败即中断构建

This commit is contained in:
2026-02-07 21:02:09 +08:00
parent b7bff79432
commit 5aa2b62299
11 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ WORKDIR /home/admin
# https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
# 由 build.sh 预先下载到本目录
ADD Python-3.10.0.tgz ./
RUN yum install \
RUN set -e && yum install \
libffi-devel \
zlib-devel \
bzip2-devel \
@@ -32,6 +32,6 @@ RUN yum install \
python3 -V; \
mkdir ~/.pip;
COPY pip.conf ~/.pip/
RUN yum install -y \
RUN set -e && yum install -y \
epel-release \
ansible;