From 5a10538e38cec065444b8bdef96891588b499d31 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 20 Sep 2021 21:58:48 +0200 Subject: [PATCH] ensure bash is installed and used for custom scripts --- Dockerfile | 2 +- overlay/usr/bin/lhci | 2 +- overlay/usr/bin/lhci-official | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c44a976..ce24fb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ ENV LHCI_BASE_DIR=/drone/src \ ADD overlay/ / -RUN apt-get update && apt-get install -y git curl wget gnupg jq && \ +RUN apt-get update && apt-get install -y git curl wget gnupg jq bash && \ curl -SsL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" && \ chmod 755 /usr/local/bin/yq && \ wget -qO - "https://dl-ssl.google.com/linux/linux_signing_key.pub" | apt-key add - && \ diff --git a/overlay/usr/bin/lhci b/overlay/usr/bin/lhci index 52f94dd..bd70ba8 100755 --- a/overlay/usr/bin/lhci +++ b/overlay/usr/bin/lhci @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash set -eo pipefail CONFIG="${LHCI_BASE_DIR%/}/.lighthouserc.yml" diff --git a/overlay/usr/bin/lhci-official b/overlay/usr/bin/lhci-official index 0898f89..acf5f02 100755 --- a/overlay/usr/bin/lhci-official +++ b/overlay/usr/bin/lhci-official @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash set -eo pipefail exec /usr/local/bin/lhci "$@"