-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
32 lines (26 loc) · 1.24 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
# See base-image/image
FROM ubuntu:22.04
ENTRYPOINT [ "/usr/bin/parsecd" ]
COPY bin/install_clean /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 libcurl4 libcurl4-openssl-dev
# Parsec Client
RUN install_clean wget \
&& wget --progress=dot:giga --no-check-certificate "https://s3.amazonaws.com/parsec-build/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