pms-docker/Dockerfile

58 lines
1.2 KiB
Docker
Raw Normal View History

FROM ubuntu:16.04
2016-12-23 20:22:58 +00:00
ARG S6_OVERLAY_VERSION=v1.17.2.0
ARG DEBIAN_FRONTEND="noninteractive"
2017-01-24 20:01:23 +00:00
ENV TERM="xterm" LANG="C.UTF-8" LC_ALL="C.UTF-8"
ENTRYPOINT ["/init"]
RUN \
# Update and get dependencies
apt-get update && \
apt-get install -y \
tzdata \
curl \
xmlstarlet \
uuid-runtime \
2018-03-22 12:12:28 +00:00
unrar \
&& \
# Fetch and extract S6 overlay
2016-12-23 20:22:58 +00:00
curl -J -L -o /tmp/s6-overlay-amd64.tar.gz https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz && \
tar xzf /tmp/s6-overlay-amd64.tar.gz -C / && \
# Add user
useradd -U -d /config -s /bin/false plex && \
usermod -G users plex && \
# Setup directories
mkdir -p \
/config \
/transcode \
/data \
&& \
# Cleanup
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
2016-12-23 18:52:26 +00:00
rm -rf /var/tmp/*
EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp
VOLUME /config /transcode
2016-12-12 19:32:42 +00:00
ENV CHANGE_CONFIG_DIR_OWNERSHIP="true" \
HOME="/config"
2017-12-05 18:39:35 +00:00
ARG TAG=beta
ARG URL=
COPY root/ /
RUN \
# Save version and install
/installBinary.sh
2017-01-04 14:11:40 +00:00
HEALTHCHECK --interval=200s --timeout=100s CMD /healthcheck.sh || exit 1