mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
e484e6662f
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
37 lines
710 B
Docker
37 lines
710 B
Docker
# A Python based monitoring and tracking tool for Plex Media Server.
|
|
#
|
|
# docker run -d \
|
|
# --name=PlexPy \
|
|
# -v <path to local plexpy data>:/data \
|
|
# -p 8181:8181 \
|
|
# r.j3ss.co/plexpy
|
|
FROM alpine:latest
|
|
|
|
# Install required packages.
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
git \
|
|
python \
|
|
py-pip
|
|
|
|
# Get the source
|
|
ENV PLEXPY_VERSION v2.1.34
|
|
RUN git clone https://github.com/Tautulli/Tautulli.git /opt/plexpy \
|
|
&& ( \
|
|
cd /opt/plexpy \
|
|
&& git checkout "${PLEXPY_VERSION}" \
|
|
)
|
|
|
|
# Volume for Plexpy data.
|
|
VOLUME /data
|
|
|
|
# Set the working directory.
|
|
WORKDIR /opt/plexpy
|
|
|
|
# Expose ports.
|
|
EXPOSE 8181
|
|
|
|
# Define default command.
|
|
ENTRYPOINT ["python", "PlexPy.py"]
|
|
CMD ["--nolaunch", "--datadir=/data"]
|