From 1fe11c6704a8909980ddd51b08885522306c6e6c Mon Sep 17 00:00:00 2001 From: Dawid Kulas <147207983+dawidkulas@users.noreply.github.com> Date: Fri, 13 Oct 2023 00:42:12 +0200 Subject: [PATCH] Added suggested changes --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ecf195d..5ad7eab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,7 @@ FROM jlesage/baseimage-gui:debian-11-v4 ENV APP_NAME="iDRAC 6" \ IDRAC_PORT=443 \ DISPLAY_WIDTH=801 \ - DISPLAY_HEIGHT=621 \ - DOCKER_IMAGE_PLATFORM=arm64 + DISPLAY_HEIGHT=621 COPY keycode-hack.c /keycode-hack.c @@ -12,11 +11,13 @@ RUN APP_ICON_URL=https://raw.githubusercontent.com/DomiStyle/docker-idrac6/maste install_app_icon.sh "$APP_ICON_URL" RUN apt-get update && \ - apt-get install -y wget software-properties-common libx11-dev gcc xdotool && \ - wget -nc https://cdn.azul.com/zulu-embedded/bin/zulu8.70.0.23-ca-jdk8.0.372-linux_arm64.deb && \ - apt-get install -y ./zulu8.70.0.23-ca-jdk8.0.372-linux_arm64.deb && \ + apt-get install -y software-properties-common libx11-dev gcc xdotool gnupg ca-certificates curl && \ + curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg + echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list + apt-get update && \ + apt-get install -y zulu8-jre && \ gcc -o /keycode-hack.so /keycode-hack.c -shared -s -ldl -fPIC && \ - apt-get remove -y gcc software-properties-common && \ + apt-get remove -y gcc software-properties-common gnupg ca-certificates curl && \ apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/* && \ rm /keycode-hack.c