This commit is contained in:
parent
8027572145
commit
5157910266
@ -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" && \
|
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 && \
|
apt-get update && apt-get install --no-install-recommends -y google-chrome-stable && \
|
||||||
LHCI_VERSION="${LHCI_VERSION##v}" && \
|
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' ..." && \
|
echo "Installing lhci version '$LHCI_VERSION' ..." && \
|
||||||
npm install -g @lhci/cli@"$LHCI_VERSION"; \
|
npm install -g @lhci/cli@"$LHCI_VERSION"; \
|
||||||
else \
|
|
||||||
echo "Installing latest lhci ..." && \
|
|
||||||
npm install -g @lhci/cli; \
|
|
||||||
fi && \
|
|
||||||
npm install -g lighthouse && \
|
npm install -g lighthouse && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /tmp/* && \
|
rm -rf /tmp/* && \
|
||||||
|
Loading…
Reference in New Issue
Block a user