dockerfiles/plexpy/Dockerfile

37 lines
709 B
Docker
Raw Normal View History

2016-06-09 00:50:08 +02:00
# A Python based monitoring and tracking tool for Plex Media Server.
#
# docker run -d \
2016-06-09 00:50:08 +02:00
# --name=PlexPy \
# -v <path to local plexpy data>:/data \
2016-06-09 00:50:08 +02:00
# -p 8181:8181 \
# r.j3ss.co/plexpy
2016-06-09 00:50:08 +02:00
FROM alpine:latest
# Install required packages.
RUN apk add --no-cache \
ca-certificates \
git \
python \
py-pip
2016-06-09 00:50:08 +02:00
# Get the source
ENV PLEXPY_VERSION v2.2.3
RUN git clone https://github.com/Tautulli/Tautulli.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
# Define default command.
ENTRYPOINT ["python", "PlexPy.py"]
CMD ["--nolaunch", "--datadir=/data"]