forked from greensheep/plex-server-docker-rpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 785 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 785 Bytes
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
FROM debian:buster-slim AS src
ARG TARGETARCH
ENV DEBIAN_FRONTEND="noninteractive" \
PLEX_PATH=/usr/lib/plexmediaserver \
PLEX_USER_NAME=plex \
PLEX_CONFIG_DIR=/config \
PLEX_DATA_DIR=/data \
PLEX_TRANSCODE_DIR=/transcode
RUN apt-get update \
&& apt-get install -y wget ca-certificates
COPY VERSION .
COPY scripts/plex-url.sh .
# Download / install Plex
RUN PLEX_VERSION=$(cat ./VERSION) \
&& PLEX_URL=$(./plex-url.sh $PLEX_VERSION $TARGETARCH) \
&& wget --no-verbose -O /tmp/plex.deb $PLEX_URL \
&& dpkg -i /tmp/plex.deb \
&& rm -f /tmp/plexmediaserver.deb
# Add user
RUN useradd -U -d $PLEX_CONFIG_DIR -s /bin/false $PLEX_USER_NAME \
&& usermod -G users $PLEX_USER_NAME
COPY scripts/entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]