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 RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
# Install edge # Install edge
RUN \ RUN apt-get update && \
apt-get update && \ echo "**** install edge ****" && \
echo "**** install edge ****" && \ apt-get install -y ca-certificates && \
if [ -z ${EDGE_VERSION+x} ]; then \ 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); \ EDGE_VERSION=$(curl -sL https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/ | \
fi && \ awk -F'(<a href="microsoft-edge-stable_|_amd64.deb\")' '/href=/ {print $2}' | sort --version-sort | tail -1); \
curl -o \ fi && \
/tmp/edge.deb -L \ for i in {1..5}; do \
"https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_${EDGE_VERSION}_amd64.deb" && \ 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; \
apt install --no-install-recommends -y \ done && \
/tmp/edge.deb && \ apt install --no-install-recommends -y /tmp/edge.deb && \
echo "**** edge docker tweaks ****" && \ echo "**** edge docker tweaks ****" && \
mv \ mv /usr/bin/microsoft-edge /usr/bin/microsoft-edge-real
/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/*
################## ##################
# 3 Install apps # # 3 Install apps #