From e218e286670c2180dd89349a5eae9a91659cb296 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Thu, 17 Jun 2021 11:03:49 +0200 Subject: [PATCH] Allow dpkg to fail so apt can install missing dependencies --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34fa531..9555084 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,9 +28,9 @@ ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 -RUN dpkg -i /tmp/packages-microsoft-prod.deb && \ +RUN dpkg -i /tmp/packages-microsoft-prod.deb || true && \ rm -f /tmp/packages-microsoft-prod.deb && \ - apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \ + apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends -f \ # (build-essential) Dependency for installation of InSpec build-essential \ curl \