-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM jlesage/baseimage-gui:debian-13-v4
ENV APP_NAME="iDRAC 6" \
IDRAC_PORT=443 \
DISPLAY_WIDTH=1281 \
DISPLAY_HEIGHT=1045
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 gnupg ca-certificates curl libx11-dev gcc xdotool && \
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" > /etc/apt/sources.list.d/zulu.list && \
apt-get update && \
apt-get install -y zulu8-jdk && \
gcc -o /keycode-hack.so /keycode-hack.c -shared -s -ldl -fPIC && \
apt-get remove -y gcc gnupg && \
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/zulu8-ca-amd64/jre/lib/security/java.security
COPY startapp.sh /startapp.sh
COPY mountiso.sh /mountiso.sh
WORKDIR /app