docker-idrac6/Dockerfile
Adam 3dae4577cb
Update Dockerfile
Makes the viewable screen area more compatible with the newer versions of iDRAC.
2023-04-27 12:46:24 -07:00

32 lines
1008 B
Docker

FROM jlesage/baseimage-gui:debian-11
ENV APP_NAME="iDRAC 6" \
IDRAC_PORT=443 \
DISPLAY_WIDTH=1280 \
DISPLAY_HEIGHT=1024
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 xdotool && \
wget -nc https://cdn.azul.com/zulu/bin/zulu8.68.0.21-ca-jdk8.0.362-linux_amd64.deb && \
apt-get install -y ./zulu8.68.0.21-ca-jdk8.0.362-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
RUN rm /usr/lib/jvm/zulu-8-amd64/jre/lib/security/java.security
COPY startapp.sh /startapp.sh
COPY mountiso.sh /mountiso.sh
WORKDIR /app