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
+1 -1
View File
@@ -5,7 +5,7 @@ ENV JAVA_HOME=/usr/local/java
ENV PATH="${JAVA_HOME}/bin:$PATH"
WORKDIR /home/admin
ADD jdk-11.0.2.tar.gz ./
RUN yum install \
RUN set -e && yum install \
tar \
wget \
net-tools \