diff --git a/image/compile-dotnet6/Dockerfile b/image/compile-dotnet6/Dockerfile index a334e14..c59f333 100644 --- a/image/compile-dotnet6/Dockerfile +++ b/image/compile-dotnet6/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /home/admin ADD dotnet-sdk-6.0.427-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 \ diff --git a/image/compile-dotnet8/Dockerfile b/image/compile-dotnet8/Dockerfile index fa0806f..68751bf 100644 --- a/image/compile-dotnet8/Dockerfile +++ b/image/compile-dotnet8/Dockerfile @@ -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 \ diff --git a/image/compile-dotnet9/Dockerfile b/image/compile-dotnet9/Dockerfile index a5db896..418f19e 100644 --- a/image/compile-dotnet9/Dockerfile +++ b/image/compile-dotnet9/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /home/admin ADD dotnet-sdk-9.0.100-rc.2.24474.11-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 \ diff --git a/image/runtime-dotnet6/Dockerfile b/image/runtime-dotnet6/Dockerfile index 8c4f94b..c44c1e6 100644 --- a/image/runtime-dotnet6/Dockerfile +++ b/image/runtime-dotnet6/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /home/admin ADD aspnetcore-runtime-6.0.35-linux-x64.tar.gz /usr/local/dotnet/ # sysstat/net-tools 用于排障 # libicu:.NET 全球化(CultureInfo/TimeZoneInfo)必需,缺了 dotnet 命令会直接 Abort -RUN yum install \ +RUN set -e && yum install \ libicu \ sysstat \ net-tools -y; \ diff --git a/image/runtime-dotnet8/Dockerfile b/image/runtime-dotnet8/Dockerfile index a896ab8..4b2da53 100644 --- a/image/runtime-dotnet8/Dockerfile +++ b/image/runtime-dotnet8/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /home/admin ADD aspnetcore-runtime-8.0.10-linux-x64.tar.gz /usr/local/dotnet/ # sysstat/net-tools 用于排障 # libicu:.NET 全球化(CultureInfo/TimeZoneInfo)必需,缺了 dotnet 命令会直接 Abort -RUN yum install \ +RUN set -e && yum install \ libicu \ sysstat \ net-tools -y; \ diff --git a/image/runtime-dotnet9/Dockerfile b/image/runtime-dotnet9/Dockerfile index 05a1cc1..7ee24e2 100644 --- a/image/runtime-dotnet9/Dockerfile +++ b/image/runtime-dotnet9/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /home/admin ADD aspnetcore-runtime-9.0.0-rc.2.24474.3-linux-x64.tar.gz /usr/local/dotnet/ # sysstat/net-tools 用于排障 # libicu:.NET 全球化(CultureInfo/TimeZoneInfo)必需,缺了 dotnet 命令会直接 Abort -RUN yum install \ +RUN set -e && yum install \ libicu \ sysstat \ net-tools -y; \ diff --git a/image/runtime-jdk11/Dockerfile b/image/runtime-jdk11/Dockerfile index c31097a..00a0a0b 100644 --- a/image/runtime-jdk11/Dockerfile +++ b/image/runtime-jdk11/Dockerfile @@ -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 \ diff --git a/image/runtime-jdk17/Dockerfile b/image/runtime-jdk17/Dockerfile index b187450..7a1025e 100644 --- a/image/runtime-jdk17/Dockerfile +++ b/image/runtime-jdk17/Dockerfile @@ -5,7 +5,7 @@ ENV JAVA_HOME=/usr/local/java ENV PATH="${JAVA_HOME}/bin:$PATH" WORKDIR /home/admin ADD jdk-17.0.2.tar.gz ./ -RUN yum install \ +RUN set -e && yum install \ tar \ wget \ net-tools \ diff --git a/image/runtime-jdk21/Dockerfile b/image/runtime-jdk21/Dockerfile index b18da43..ccce813 100644 --- a/image/runtime-jdk21/Dockerfile +++ b/image/runtime-jdk21/Dockerfile @@ -5,7 +5,7 @@ ENV JAVA_HOME=/usr/local/java ENV PATH="${JAVA_HOME}/bin:$PATH" WORKDIR /home/admin ADD jdk-21.0.2.tar.gz ./ -RUN yum install \ +RUN set -e && yum install \ tar \ wget \ net-tools \ diff --git a/image/runtime-python3/Dockerfile b/image/runtime-python3/Dockerfile index a982cec..33857a5 100644 --- a/image/runtime-python3/Dockerfile +++ b/image/runtime-python3/Dockerfile @@ -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 \ diff --git a/image/tools-ansible/Dockerfile b/image/tools-ansible/Dockerfile index 226ea8f..98f82d9 100644 --- a/image/tools-ansible/Dockerfile +++ b/image/tools-ansible/Dockerfile @@ -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; \ No newline at end of file