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 \
|
|
|
|
# -v <path to plexlogs>:/data/logs \
|
|
|
|
# -p 8181:8181 \
|
|
|
|
# arukaen/plexpy
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
MAINTAINER Cris G c@cristhekid.com
|
|
|
|
|
|
|
|
# Install required packages.
|
2016-06-09 22:30:11 +02:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
python
|
2016-06-09 00:50:08 +02:00
|
|
|
|
2016-06-09 22:30:11 +02:00
|
|
|
# Get the source
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
git \
|
|
|
|
&& mkdir -p /opt/plexpy \
|
|
|
|
&& git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ \
|
|
|
|
&& apk del .build-deps
|
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.
|
|
|
|
CMD ["python", "PlexPy.py"]
|
|
|
|
ENTRYPOINT ["--nolaunch", "--datadir=/data"]
|