-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (35 loc) · 1.57 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM selenium/standalone-firefox-debug:3.141.59-20200525
USER seluser
RUN sudo apt update && \
sudo apt-get install -y git python3-pip libasound-dev && \
sudo apt-get install -y portaudio19-dev libportaudio2 libportaudiocpp0 && \
sudo apt-get install -y ffmpeg
# Clone noVNC.
RUN git clone https://github.com/novnc/noVNC.git $HOME/noVNC
RUN cp $HOME/noVNC/vnc.html $HOME/noVNC/index.html
# websockify
RUN git clone https://github.com/kanaka/websockify $HOME/noVNC/utils/websockify
# Audio server
RUN pip3 install pyaudio flask
COPY audioserver $HOME/audioserver
RUN pip3 install -r $HOME/audioserver/requirements.txt
# RUN NoVNC
COPY supervisord.conf /etc/supervisor/conf.d/zzz_hmihy.conf
#COPY start-vnc.sh /opt/bin/
COPY fluxbox.init /usr/share/fluxbox/init
#Pulse audio
RUN sudo apt-get install -y --no-install-recommends pulseaudio dbus-x11 xserver-xorg-video-dummy; \
sudo apt-get install -y --no-install-recommends libcairo2 libxcb1 libxrandr2 libxv1 libopus0 libvpx4;
# setup pulseaudio
RUN mkdir -p /home/$USERNAME/.config/pulse/; \
echo "default-server=unix:/tmp/pulseaudio.socket" > /home/$USERNAME/.config/pulse/client.conf;
## WebRTC Cli
RUN sudo apt-get install -y gcc make pkg-config libopus-dev libopusfile-dev libpulse-dev software-properties-common \
&& sudo add-apt-repository ppa:longsleep/golang-backports \
&& sudo apt-get update \
&& sudo apt-get install -y golang-go
RUN sudo git clone https://github.com/gavv/webrtc-cli.git
RUN cd webrtc-cli && sudo make
# Test webrtc-cli
RUN cd webrtc-cli && sudo ./webrtc-cli -h
EXPOSE 6080 4444 5900 5000