2016-06-09 00:50:08 +02:00
|
|
|
# A Python based monitoring and tracking tool for Plex Media Server.
|
|
|
|
#
|
2016-06-09 22:30:11 +02:00
|
|
|
# docker run -d \
|
2016-06-09 00:50:08 +02:00
|
|
|
# --name=PlexPy \
|
2016-12-28 02:31:38 +01:00
|
|
|
# -v <path to local plexpy data>:/data \
|
2016-06-09 00:50:08 +02:00
|
|
|
# -p 8181:8181 \
|
2016-12-28 02:31:38 +01:00
|
|
|
# r.j3ss.co/plexpy
|
2016-06-09 00:50:08 +02:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
# Install required packages.
|
2016-06-09 22:30:11 +02:00
|
|
|
RUN apk add --no-cache \
|
2016-12-28 02:24:13 +01:00
|
|
|
ca-certificates \
|
2016-12-28 02:31:38 +01:00
|
|
|
git \
|
2016-12-28 02:24:13 +01:00
|
|
|
python
|
2016-06-09 00:50:08 +02:00
|
|
|
|
2016-06-09 22:30:11 +02:00
|
|
|
# Get the source
|
2017-03-21 00:00:34 +01:00
|
|
|
ENV PLEXPY_VERSION v1.4.17
|
2016-12-28 02:31:38 +01:00
|
|
|
RUN git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy \
|
|
|
|
&& ( \
|
|
|
|
cd /opt/plexpy \
|
|
|
|
&& git checkout "${PLEXPY_VERSION}" \
|
|
|
|
)
|
2016-06-09 00:50:08 +02:00
|
|
|
|
|
|
|
# Volume for Plexpy data.
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
# Set the working directory.
|
|
|
|
WORKDIR /opt/plexpy
|
|
|
|
|
|
|
|
# Expose ports.
|
|
|
|
EXPOSE 8181
|
2016-06-09 22:30:11 +02:00
|
|
|
|
|
|
|
# Define default command.
|
2016-12-28 02:21:39 +01:00
|
|
|
ENTRYPOINT ["python", "PlexPy.py"]
|
|
|
|
CMD ["--nolaunch", "--datadir=/data"]
|