FROM jlesage/baseimage-gui:debian-11 ENV APP_NAME="iDRAC 6" \ IDRAC_PORT=443 \ DISPLAY_WIDTH=801 \ DISPLAY_HEIGHT=621 COPY keycode-hack.c /keycode-hack.c RUN APP_ICON_URL=https://raw.githubusercontent.com/DomiStyle/docker-idrac6/master/icon.png && \ install_app_icon.sh "$APP_ICON_URL" RUN apt-get update && \ apt-get install -y wget software-properties-common libx11-dev gcc && \ wget -nc https://cdn.azul.com/zulu/bin/zulu7.52.0.11-ca-jdk7.0.332-linux_amd64.deb && \ apt-get install -y ./zulu7.52.0.11-ca-jdk7.0.332-linux_amd64.deb && \ gcc -o /keycode-hack.so /keycode-hack.c -shared -s -ldl -fPIC && \ apt-get remove -y gcc software-properties-common && \ apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/* && \ rm /keycode-hack.c RUN mkdir /app && \ chown ${USER_ID}:${GROUP_ID} /app COPY startapp.sh /startapp.sh WORKDIR /app