use plex env variables, usermod home folder of abc to /app
This commit is contained in:
parent
88c81df5ae
commit
bac8b14e6c
4 changed files with 24 additions and 12 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -5,9 +5,11 @@ MAINTAINER Stian Larsen, sparklyballs
|
|||
ENV PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu"
|
||||
|
||||
# global environment settings
|
||||
ENV DEBIAN_FRONTEND="noninteractive"
|
||||
ENV HOME="/config"
|
||||
ENV PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server"
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server" \
|
||||
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \
|
||||
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
|
||||
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6"
|
||||
|
||||
# install packages
|
||||
RUN \
|
||||
|
|
@ -23,6 +25,9 @@ RUN \
|
|||
"${PLEX_INSTALL}" && \
|
||||
dpkg -i /tmp/plexmediaserver.deb && \
|
||||
|
||||
# change abc home folder to fix plex hanging at runtime with usermod
|
||||
usermod -d /app abc && \
|
||||
|
||||
# cleanup
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue