Update Dockerfile

This commit is contained in:
Alexandre
2025-01-28 16:17:30 +01:00
committed by GitHub
parent 822bc7bede
commit 1d130dff48

View File

@@ -43,28 +43,19 @@ 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
RUN \
apt-get update && \
echo "**** install edge ****" && \
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 && \
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" && \
apt install --no-install-recommends -y \
/tmp/edge.deb && \
echo "**** edge docker tweaks ****" && \
mv \
/usr/bin/microsoft-edge \
/usr/bin/microsoft-edge-real && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/config/.cache \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
RUN apt-get update && \
echo "**** install edge ****" && \
apt-get install -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 {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" && break || sleep 10; \
done && \
apt install --no-install-recommends -y /tmp/edge.deb && \
echo "**** edge docker tweaks ****" && \
mv /usr/bin/microsoft-edge /usr/bin/microsoft-edge-real
##################
# 3 Install apps #