-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 1.03 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
FROM ubuntu:22.04
# currently locked to version 0.4.16
ADD https://github.com/geekuillaume/soundsync/releases/download/v0.4.16/soundsync-amd64-0.4.16.deb /
# suppress prompts for various packages during apt install
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install /soundsync* --yes
RUN apt install xdg-utils pulseaudio-utils --yes
# below this line inspired by (stolen from) https://github.com/TheBiggerGuy/docker-pulseaudio-example
# Set up the user
ENV UNAME pacat
RUN export UNAME=$UNAME UID=1000 GID=1000 && \
mkdir -p "/home/${UNAME}" && \
echo "${UNAME}:x:${UID}:${GID}:${UNAME} User,,,:/home/${UNAME}:/bin/bash" >> /etc/passwd && \
echo "${UNAME}:x:${UID}:" >> /etc/group && \
mkdir -p /etc/sudoers.d && \
echo "${UNAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${UNAME} && \
chmod 0440 /etc/sudoers.d/${UNAME} && \
chown ${UID}:${GID} -R /home/${UNAME} && \
gpasswd -a ${UNAME} audio
COPY pulse-client.conf /etc/pulse/client.conf
USER $UNAME
ENV HOME /home/pacat
CMD /opt/Soundsync/soundsync