This commit is contained in:
Michael Trip 2023-10-03 18:57:34 +02:00
parent 2dd7cd5ad0
commit 7346a45d3e

View file

@ -11,15 +11,11 @@ WORKDIR /tmp
RUN dnf install -y wget RUN dnf install -y wget
RUN \ RUN \
if [ "${TARGETARCH}" == "amd64" ]; then \ case ${TARGETARCH} in \
wget -O /tmp/openlens.rpm https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.x86_64.rpm; \ "amd64") DOWNLOAD_ARCH=amd64 ;; \
elif [ "${TARGETARCH}" == "arm64" ]; then \ "arm64") DOWNLOAD_ARCH=aarch64 ;; \
wget -O /tmp/openlens.rpm https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.aarch64.rpm; \ esac \
else \ && wget -O /tmp/openlens.rpm https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.${DOWNLOAD_ARCH}.rpm
echo "Unsupported architecture: ${TARGETARCH}"; \
exit 1; \
fi
RUN \ RUN \
echo "**** install packages ****" && \ echo "**** install packages ****" && \
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \ rpm --import https://packages.microsoft.com/keys/microsoft.asc && \