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