forked from justifiably/docker-logitechmediaserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
76 lines (65 loc) · 2.04 KB
/
Dockerfile
File metadata and controls
76 lines (65 loc) · 2.04 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM debian:jessie
MAINTAINER Merikz <merikz.code@gmail.com>
ENV TZ Europe/Stockholm
RUN set -x \
&& echo $TZ > /etc/timezone \
&& rm /etc/timezone \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
RUN set -x \
&& echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --force-yes deb-multimedia-keyring \
&& apt-get clean
# Need --force-yes because not all are signed even with above keyring (libfaac etc)
RUN set -x \
&& DEBIAN_FRONTEND=noninteractive apt-get install \
-y --force-yes --no-install-recommends \
supervisor \
perl5 \
locales \
faad \
faac \
flac \
lame \
sox \
wavpack \
curl \
libio-socket-ssl-perl \
&& apt-get clean
RUN set -x \
&& echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
# Fix UID for squeezeboxserver user to help with host volumes
ARG LMS_UID
RUN set -x \
&& useradd \
--system \
--uid ${LMS_UID} \
-M \
-s /bin/false \
-d /usr/share/squeezeboxserver \
-G nogroup \
-c "Logitech Media Server user" \
squeezeboxserver
ARG LMS_URL
ARG LMS_VERSION
RUN set -x \
&& curl -o /tmp/lms.deb ${LMS_URL} \
&& dpkg -i /tmp/lms.deb \
&& rm /tmp/lms.deb \
&& echo ${LMS_VERSION} > /lms_version.txt
# Move config dir to allow editing convert.conf
RUN set -x \
&& mkdir -p /mnt/state/etc \
&& mv /etc/squeezeboxserver /etc/squeezeboxserver.orig \
&& cp -pr /etc/squeezeboxserver.orig/* /mnt/state/etc \
&& ln -s /mnt/state/etc /etc/squeezeboxserver \
&& chown -R squeezeboxserver.nogroup /mnt/state \
\
&& mkdir -p /var/log/supervisor
COPY ./supervisord.conf /etc/
COPY ./start-lms.sh /
VOLUME ["/mnt/state","/mnt/music","/mnt/playlists","/mnt/logs"]
EXPOSE 3483 3483/udp 9000 9090 9010
CMD ["/start-lms.sh"]