From 090b3f5896668cabe0e70f39226aeaf7676a30f4 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Thu, 23 Sep 2021 16:12:30 -0700 Subject: [PATCH] Use bash shell with pipefail option turned on when building the image --- Dockerfile | 2 ++ Dockerfile.arm32v7 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index d588531..7ac7b01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ FROM continuumio/miniconda3:4.10.3 +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + # Upgrade all packages to meet security criteria RUN apt-get update && apt-get upgrade -y && apt-get install sudo && rm -rf /var/lib/apt/lists/* diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 3bd3474..1015791 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 @@ -16,6 +16,8 @@ FROM arm32v7/python:3.7.11-buster +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + # Upgrade all packages to meet security criteria RUN apt-get update && apt-get upgrade -y && apt-get install sudo && rm -rf /var/lib/apt/lists/*