bnuuy/Dockerfile

17 lines
731 B
Text
Raw Normal View History

2021-05-25 16:20:40 +00:00
FROM alpine:latest
2021-05-25 23:21:40 +00:00
RUN apk add dbus xorg-server xf86-input-libinput eudev xspice supervisor firefox pulseaudio pulseaudio-alsa alsa-plugins-pulse\
2021-05-25 16:20:40 +00:00
&& addgroup bnuuy \
&& adduser -G bnuuy -s /bin/sh -D bnuuy \
&& rm -rf /apk /tmp/* /var/cache/apk/*
ADD etc /etc
2021-05-25 23:21:40 +00:00
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
2021-05-25 16:20:40 +00:00
WORKDIR /home/bnuuy
2021-05-25 17:24:45 +00:00
ADD mozilla .mozilla/
RUN chown -R bnuuy:bnuuy .mozilla/
EXPOSE 5900
2021-05-25 16:20:40 +00:00
USER bnuuy
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]