forked from map7/docker-logitechmediaserver
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (43 loc) · 1.55 KB
/
Dockerfile
File metadata and controls
55 lines (43 loc) · 1.55 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
FROM buildpack-deps:buster-curl
ARG DEBIAN_FRONTEND=noninteractive
# Env variables persisted in container
ARG PUID=819
ARG PGID=819
ENV PUID $PUID
ENV PGID $PGID
# 8.1.1 stable release, 14th Jan 2021.
ARG LMSDEB=http://downloads.slimdevices.com/LogitechMediaServer_v8.1.1/logitechmediaserver_8.1.1_all.deb
RUN echo "deb http://www.deb-multimedia.org buster main non-free" | tee -a /etc/apt/sources.list && \
apt-get update -o Acquire::AllowInsecureRepositories=true && apt-get install -y --allow-unauthenticated deb-multimedia-keyring && \
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 \
socat \
--no-install-recommends && \
apt-get upgrade -y --allow-unauthenticated && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN 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 /
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"]