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
@@ -9,7 +9,7 @@ WORKDIR /home/admin
ADD dotnet-sdk-8.0.403-linux-x64.tar.gz /usr/local/dotnet/
# gcc/make 用于编译含原生代码的 NuGet 包;sysstat/net-tools 用于排障
# libicu:.NET 全球化(CultureInfo/TimeZoneInfo)必需,缺了 dotnet 命令会直接 Abort
RUN yum install \
RUN set -e && yum install \
gcc \
make \
libicu \