first commit
This commit is contained in:
49
Dockerfile
Normal file
49
Dockerfile
Normal file
@@ -0,0 +1,49 @@
|
||||
FROM alpine:latest
|
||||
#https://github.com/uphy/novnc-alpine-docker
|
||||
RUN \
|
||||
apk --update --upgrade add \
|
||||
bash \
|
||||
fluxbox \
|
||||
git \
|
||||
supervisor \
|
||||
xvfb \
|
||||
x11vnc \
|
||||
&& \
|
||||
# Install noVNC
|
||||
git clone --depth 1 https://github.com/novnc/noVNC.git /opt/noVNC && \
|
||||
git clone --depth 1 https://github.com/novnc/websockify /opt/noVNC/utils/websockify && \
|
||||
rm -rf /opt/noVNC/.git && \
|
||||
rm -rf /opt/noVNC/utils/websockify/.git && \
|
||||
apk del git && \
|
||||
sed -i -- "s/ps -p/ps -o pid | grep/g" /opt/noVNC/utils/launch.sh
|
||||
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
EXPOSE 8080
|
||||
|
||||
# Setup environment variables
|
||||
ENV HOME=/root \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
LANG=en_US.UTF-8 \
|
||||
LANGUAGE=en_US.UTF-8 \
|
||||
LC_ALL=C.UTF-8 \
|
||||
DISPLAY=:0.0 \
|
||||
DISPLAY_WIDTH=1280 \
|
||||
DISPLAY_HEIGHT=680
|
||||
|
||||
#AJOUT BMT pour lancher xterm
|
||||
RUN \
|
||||
# Install xterm
|
||||
apk add xterm && \
|
||||
apk add firefox-esr dbus ttf-freefont && \
|
||||
# Append xterm entry to supervisord.conf
|
||||
cd /etc/supervisor/conf.d && \
|
||||
echo '[program:xterm]' >> supervisord.conf && \
|
||||
echo 'command=xterm' >> supervisord.conf && \
|
||||
echo 'autorestart=true' >> supervisord.conf
|
||||
|
||||
#AJOUT BEN pour alias index>vnc.html
|
||||
RUN \
|
||||
cd /opt/noVNC && \
|
||||
ln -s vnc.html index.html
|
||||
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||
Reference in New Issue
Block a user