forked from comigor/spotify-radio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (20 loc) · 867 Bytes
/
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
FROM ubuntu
RUN apt-get update && apt-get -y install pulseaudio alsa-utils darkice icecast2 curl
RUN sed "s/^load-module module-console-kit/#load-module module-console-kit/" -i /etc/pulse/default.pa \
&& sed "s/ENABLE=false/ENABLE=true/" -i /etc/default/icecast2 \
&& sed "s/hackme/prettybigpasswordthatnoonewouldguess/g" -i /etc/icecast2/icecast.xml \
&& sed "s/8000/20300/" -i /etc/icecast2/icecast.xml \
&& mkdir -p /audio \
&& chmod 0777 /audio \
&& useradd -u 1000 -m -d /home/user -s /bin/sh user \
&& usermod -aG audio user
ADD start.sh /bin/start.sh
ADD spotifyd /bin/spotifyd
ADD darkice.cfg /home/user/darkice.cfg
USER user
RUN mkdir -p /home/user/.config/spotifyd
ADD spotifyd.conf /home/user/.config/spotifyd/spotifyd.conf
ADD custom_boot.sh /home/user/custom_boot.sh
USER root
EXPOSE 20300
ENTRYPOINT [ "/bin/start.sh" ]