2022-02-02 02:46:29 +00:00
|
|
|
FROM alpine:3.14
|
2021-05-26 15:09:40 +00:00
|
|
|
RUN apk add git dbus-x11 xorg-server xf86-input-libinput eudev xspice supervisor firefox pulseaudio pulseaudio-alsa \
|
2021-05-26 15:23:21 +00:00
|
|
|
&& apk add gst-plugins-base gst-plugins-good gst-plugins-bad ttf-freefont ttf-opensans ttf-dejavu ttf-linux-libertine \
|
2021-05-25 16:20:40 +00:00
|
|
|
&& addgroup bnuuy \
|
|
|
|
&& adduser -G bnuuy -s /bin/sh -D bnuuy \
|
2016-09-08 11:38:23 +00:00
|
|
|
&& rm -rf /apk /tmp/* /var/cache/apk/*
|
|
|
|
ADD etc /etc
|
2021-05-26 15:09:40 +00:00
|
|
|
RUN mkdir /tmp/audio_fifo \
|
2021-05-25 23:21:40 +00:00
|
|
|
&& echo "default-sink = fifo_output" >> /etc/pulse/client.conf \
|
2021-05-26 00:30:17 +00:00
|
|
|
&& echo "load-module module-null-sink" >> /etc/pulse/default.pa \
|
|
|
|
&& echo "load-module module-always-sink" >> /etc/pulse/default.pa \
|
2021-05-25 23:21:40 +00:00
|
|
|
&& echo "load-module module-x11-publish" >> /etc/pulse/default.pa \
|
2021-05-26 00:47:55 +00:00
|
|
|
&& echo "load-module module-pipe-sink sink_name=fifo_output file=/tmp/audio_fifo/audio.fifo format=s16 rate=44100 channels=2" >> /etc/pulse/default.pa
|
2021-05-25 16:20:40 +00:00
|
|
|
WORKDIR /home/bnuuy
|
2021-05-26 15:09:40 +00:00
|
|
|
RUN git clone https://github.com/novnc/websockify websocketify
|
|
|
|
ADD mozilla .mozilla
|
|
|
|
ADD spice-html5 spice-html5
|
|
|
|
RUN chown -R bnuuy:bnuuy .mozilla spice-html5 websocketify /tmp/audio_fifo
|
2021-06-25 12:54:03 +00:00
|
|
|
EXPOSE 5900 5800
|
2016-09-08 11:38:23 +00:00
|
|
|
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]
|