Remove edge

This commit is contained in:
Alexandre
2025-02-21 09:47:33 +01:00
committed by GitHub
parent 76f11ab277
commit 2d3cee55a5

View File

@@ -43,24 +43,6 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
ARG CONFIGLOCATION="/config/data_kde"
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
# Install edge
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && \
echo "**** install edge ****" && \
apt-get install --no-install-recommends -y ca-certificates && \
if [ -z ${EDGE_VERSION+x} ]; then \
EDGE_VERSION=$(curl -sL https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/ | \
awk -F'(<a href="microsoft-edge-stable_|_amd64.deb\")' '/href=/ {print $2}' | sort --version-sort | tail -1); \
fi && \
for i in $(seq 1 5); do \
curl -o /tmp/edge.deb -L "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_${EDGE_VERSION}_amd64.deb" && \
dpkg -I /tmp/edge.deb && break || sleep 10; \
done && \
apt-get install --no-install-recommends -y /tmp/edge.deb && \
echo "**** edge docker tweaks ****" && \
if [ -f /usr/bin/microsoft-edge-stable ]; then mv /usr/bin/microsoft-edge-stable /usr/bin/microsoft-edge-real; \
else /usr/bin/microsoft-edge /usr/bin/microsoft-edge-real; fi || true
##################
# 3 Install apps #
##################