docker-idrac6/Dockerfile

25 lines
647 B
Docker
Raw Normal View History

FROM jlesage/baseimage-gui:ubuntu-16.04
2018-04-05 15:42:34 +02:00
2018-11-19 15:49:34 +01:00
ENV APP_NAME="iDRAC 6" \
IDRAC_PORT=443
2018-04-05 15:42:34 +02:00
2019-03-22 15:54:41 +01:00
COPY keycode-hack.c /keycode-hack.c
2018-12-21 10:05:54 +01:00
RUN apt-get update && \
2019-04-02 13:17:32 +02:00
apt-get install -y wget software-properties-common && \
2018-12-21 10:05:54 +01:00
add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
2019-03-22 15:54:41 +01:00
apt-get install -y openjdk-7-jdk gcc && \
gcc -o /keycode-hack.so /keycode-hack.c -shared -s -ldl -fPIC && \
2019-04-02 13:49:15 +02:00
apt-get remove -y gcc software-properties-common && \
2019-04-02 13:17:32 +02:00
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
rm /keycode-hack.c
2018-04-05 15:42:34 +02:00
RUN mkdir /app && \
chown ${USER_ID}:${GROUP_ID} /app
COPY startapp.sh /startapp.sh
WORKDIR /app