-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 1.14 KB
/
Dockerfile
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 ubuntu:22.04
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
#RUN dpkg --add-architecture i386
#RUN apt-get update && apt-get -y install xvfb x11vnc xdotool wget tar supervisor net-tools fluxbox gnupg2
RUN apt-get update
#BUILD pixelgrab
RUN apt-get -y install libgl1-mesa-dev xorg-dev golang git
RUN git clone https://github.com/schenklklopfer/pixelgrab /root/pixelgrab
#ADD ./pixelgrab /root/pixelgrab
RUN cd /root/pixelgrab/ && go build
RUN apt-get -y install xvfb x11vnc xdotool wget tar supervisor net-tools gnupg2 xz-utils
RUN apt-get -y full-upgrade && apt-get clean
WORKDIR /root/
RUN wget -O - https://github.com/novnc/noVNC/archive/refs/tags/v1.4.0.tar.gz | tar -xzv -C /root/ && mv /root/noVNC-1.4.0 /root/novnc && ln -s /root/novnc/vnc_lite.html /root/novnc/index.html
RUN wget -O - https://github.com/novnc/websockify/archive/refs/tags/v0.11.0.tar.gz | tar -xzv -C /root/ && mv /root/websockify-0.11.0 /root/novnc/utils/websockify
#ADD ffmpeg /root/ffmpeg
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENV DISPLAY :0
EXPOSE 8080
CMD ["/usr/bin/supervisord"]