From 8ce6c2fdc90c21e9e9cd5020d13f2e0ffd9c45db Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sat, 24 Dec 2022 14:46:01 +0100 Subject: [PATCH] docker: hadolint: pipefail Can't do the recommended --no-install-recommends for curl because otherwise it has problems with certificates: curl: (77) error setting certificate file: /etc/ssl/certs/ca-certificates.crt --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a1a4b3c..b2a17f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ # Partially from https://github.com/microsoft/playwright/blob/main/utils/docker/Dockerfile.focal FROM ubuntu:jammy +# https://github.com/hadolint/hadolint/wiki/DL4006 +SHELL ["/bin/bash", "-o", "pipefail", "-c"] ARG DEBIAN_FRONTEND=noninteractive - ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD true # Install up-to-date node & npm, then deps for virtual screen & noVNC