diff --git a/Dockerfile b/Dockerfile index 2ea5ef1..4255439 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,14 +29,8 @@ RUN apt-get update && apt-get install -y git curl wget gnupg jq && \ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | tee "/etc/apt/sources.list.d/google.list" && \ apt-get update && apt-get install --no-install-recommends -y google-chrome-stable && \ LHCI_VERSION="${LHCI_VERSION##v}" && \ - LHCI_MAJOR="${LHCI_VERSION%%.*}" && \ - if [ -z "${LHCI_MAJOR//[0-9]}" ] && [ -n "$LHCI_MAJOR" ]; then \ - echo "Installing lhci version '$LHCI_VERSION' ..." && \ - npm install -g @lhci/cli@"$LHCI_VERSION"; \ - else \ - echo "Installing latest lhci ..." && \ - npm install -g @lhci/cli; \ - fi && \ + echo "Installing lhci version '$LHCI_VERSION' ..." && \ + npm install -g @lhci/cli@"$LHCI_VERSION"; \ npm install -g lighthouse && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /tmp/* && \