forked from mbentley/docker-ums
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.8
30 lines (26 loc) · 1.21 KB
/
Dockerfile.8
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
# rebased/repackaged base image that only updates existing packages
FROM mbentley/debian:stretch
LABEL maintainer="Matt Bentley <[email protected]>"
# install packages per https://github.com/UniversalMediaServer/UniversalMediaServer/wiki/Linux-install-instructions
RUN (dpkg --add-architecture i386 &&\
apt-get update &&\
DEBIAN_FRONTEND=noninteractive apt-get install -y dcraw flac libfreetype6:i386 libstdc++6:i386 libbz2-1.0:i386 lib32z1 lib32ncurses5 mediainfo mencoder mplayer openjdk-8-jre procps vlc wget &&\
rm -rf /var/lib/apt/lists/*)
ENV UMSVER=8.2.0 \
UMS_PROFILE=/opt/ums/UMS.conf \
JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
# download and install UMS
RUN (wget "https://sourceforge.net/projects/unimediaserver/files/Official%20Releases/Linux/UMS-${UMSVER}.tgz/download" -O /opt/UMS-${UMSVER}.tgz &&\
cd /opt &&\
tar zxf UMS-${UMSVER}.tgz &&\
rm UMS-${UMSVER}.tgz &&\
mv ums-${UMSVER} ums &&\
mkdir /opt/ums/database /opt/ums/data &&\
groupadd -g 500 ums &&\
useradd -u 500 -g 500 -d /opt/ums ums &&\
chown -R ums:ums /opt/ums)
USER ums
WORKDIR /opt/ums
EXPOSE 1900/udp 2869 5001 9001
VOLUME ["/tmp","/opt/ums/database","/opt/ums/data"]
CMD ["/opt/ums/UMS.sh"]