This commit is contained in:
xfnw 2021-05-25 19:21:40 -04:00
parent b15f354e1b
commit 930c8f546c
2 changed files with 12 additions and 2 deletions

View file

@ -1,9 +1,13 @@
FROM alpine:latest
RUN apk add xorg-server xf86-input-libinput eudev xspice supervisor firefox pulseaudio pulseaudio-alsa alsa-plugins-pulse\
RUN apk add dbus xorg-server xf86-input-libinput eudev xspice supervisor firefox pulseaudio pulseaudio-alsa alsa-plugins-pulse\
&& addgroup bnuuy \
&& adduser -G bnuuy -s /bin/sh -D bnuuy \
&& rm -rf /apk /tmp/* /var/cache/apk/*
ADD etc /etc
RUN mkdir /tmp/audio_fifo\
&& echo "default-sink = fifo_output" >> /etc/pulse/client.conf \
&& echo "load-module module-x11-publish" >> /etc/pulse/default.pa \
&& echo "load-module module-pipe-sink sink_name=fifo_output file=/tmp/audio_fifo/audio.fifo format=s16 rate=48000 channels=2" >> /etc/pulse/default.pa
WORKDIR /home/bnuuy
ADD mozilla .mozilla/
RUN chown -R bnuuy:bnuuy .mozilla/

View file

@ -1,8 +1,14 @@
[supervisord]
nodaemon=true
[program:dbus]
command=/usr/bin/dbus-daemon --session
user=bnuuy
autorestart=true
priority=100
[program:xspice]
command=/usr/bin/Xspice --port 5900 --disable-ticketing :1
command=/usr/bin/Xspice --port 5900 --audio-fifo-dir=/tmp/audio_fifo --disable-ticketing :1
user=bnuuy
autorestart=true
priority=200