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
65 lines (52 loc) · 1.78 KB
/
Dockerfile
File metadata and controls
65 lines (52 loc) · 1.78 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
FROM arm32v7/ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
# Env variables persisted in container
ARG LMS_PATCHES
ENV LMS_PATCHES=$LMS_PATCHES
ARG PUID=819
ARG PGID=819
ENV PUID $PUID
ENV PGID $PGID
#ENV TZ Europe/Oslo
# 7.9.2 final release, 14th Jan 2020.
ARG LMSDEB=http://downloads.slimdevices.com/LogitechMediaServer_v7.9.2/logitechmediaserver_7.9.2_all.deb
RUN apt-get update -o Acquire::AllowInsecureRepositories=true && \
apt-get install -y --allow-unauthenticated \
perl \
libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl libio-socket-ssl-perl \
locales \
espeak \
faad \
faac \
flac \
lame \
sox \
ffmpeg \
wavpack \
patch \
curl \
tzdata \
--no-install-recommends && \
apt-get upgrade -y --allow-unauthenticated && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
ln -fs /usr/share/zoneinfo/Europe/Oslo /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
RUN echo "Downloading LMS package from:" $LMSDEB && \
curl -o /tmp/lms.deb $LMSDEB && \
dpkg -i /tmp/lms.deb && \
rm -f /tmp/lms.deb
RUN mkdir /mnt/state /mnt/music /mnt/playlists
ARG LOCALE=en_GB.UTF-8
ENV LANG=$LOCALE
RUN echo "$LOCALE UTF-8" > /etc/locale.gen && \
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales && \
echo LANG=\"$LOCALE\" > /etc/default/locale
COPY lms-setup.sh startup.sh *.patch /
# Apply our patches if LMS_PATCHES=y
RUN if [ -n "$LMS_PATCHES" ]; then cd /usr/share/perl5; for f in /*.patch; do patch -p1 < "$f"; done; fi
VOLUME ["/mnt/state","/mnt/music","/mnt/playlists"]
EXPOSE 3483 3483/udp 9000 9005 9010 9090 5353 5353/udp
HEALTHCHECK --interval=3m --timeout=30s \
CMD curl --fail http://localhost:9000/Default/settings/index.html || exit 1
CMD ["/startup.sh"]