forked from jaredallard/docker-parsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 1.19 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
# See base-image/image
FROM ubuntu:jammy
COPY bin/install_clean /usr/bin/install_clean
RUN chmod +x /usr/bin/install_clean
# parsec dependencies + sound + gpu (install_clean is a wrapper around apt-get)
RUN install_clean libcairo2 libfreetype6 libgdk-pixbuf2.0-0 libgl1-mesa-glx libgl1 libglib2.0-0 libgtk2.0-0 \
libpango-1.0-0 libpangocairo-1.0-0 libsm6 libxxf86vm1 pulseaudio-utils libgl1-mesa-glx \
libgl1-mesa-dri xserver-xorg-video-intel pulseaudio libva2 i965-va-driver \
libavcodec58 libssl3 ca-certificates
# Parsec Client
RUN install_clean wget \
&& wget --no-check-certificate "https://builds.parsec.app/package/parsec-linux.deb" -O parsec-linux.deb \
&& dpkg --ignore-depends libsndio6.1 -i parsec-linux.deb # --ignore-depends fixes libsndio \
&& rm parsec-linux.deb \
&& apt-get remove -y wget
# Setup pulseaudio
COPY pulse-config.conf /etc/pulse/client.conf
# add a parsec user
RUN groupadd --gid 1000 parsec \
&& useradd --gid 1000 --uid 1000 -m parsec \
&& usermod -aG video parsec \
&& mkdir -p /home/parsec/.parsec \
&& chown parsec:parsec /home/parsec/.parsec
# parsec config
USER parsec
COPY config.txt /home/parsec/.parsec/config.txt
ENTRYPOINT [ "/usr/bin/parsecd" ]