60 lines
1.6 KiB
Docker
60 lines
1.6 KiB
Docker
FROM debian
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -y --no-install-recommends\
|
|
# Some basic helpers \
|
|
bash \
|
|
sudo \
|
|
git \
|
|
ca-certificates \
|
|
procps \
|
|
\
|
|
# X11 and XFCE \
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -y --no-install-recommends\
|
|
xvfb xauth dbus-x11 xfce4 xfce4-terminal \
|
|
x11-xserver-utils \
|
|
\
|
|
# VNC \
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -y --no-install-recommends\
|
|
python3 python3-numpy \
|
|
tigervnc-standalone-server tigervnc-common \
|
|
openssl \
|
|
\
|
|
# NoVNC \
|
|
&& mkdir -p /opt/noVNC \
|
|
&& git clone --single-branch https://github.com/novnc/noVNC.git /opt/noVNC \
|
|
&& git clone --single-branch https://github.com/novnc/websockify.git /opt/noVNC/utils/websockify \
|
|
&& ln -s /opt/noVNC/vnc.html /opt/noVNC/index.html \
|
|
&& openssl req -batch -new -x509 -days 365 -nodes -out self.pem -keyout /opt/noVNC/utils/websockify/self.pem \
|
|
\
|
|
# Audio requirements \
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -y --no-install-recommends\
|
|
pulseaudio \
|
|
pavucontrol \
|
|
ucspi-tcp \
|
|
gstreamer1.0-plugins-good \
|
|
gstreamer1.0-pulseaudio \
|
|
gstreamer1.0-tools
|
|
|
|
|
|
COPY pulse/ /etc/pulse
|
|
COPY novnc /opt/noVNC/
|
|
RUN sed -i "/import RFB/a \
|
|
import '../webaudio.js'" \
|
|
/opt/noVNC/app/ui.js
|
|
|
|
# Base applications
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -y --no-install-recommends\
|
|
firefox-esr neovim
|
|
|
|
COPY entrypoint.sh /opt/noVNC/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/opt/noVNC/entrypoint.sh"]
|
|
EXPOSE 8080
|