dockerfiles/plexpy/Dockerfile

38 lines
815 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 plexlogs>:/data/logs \
# -p 8181:8181 \
# arukaen/plexpy
FROM alpine:latest
MAINTAINER Cris G c@cristhekid.com
# Install required packages.
RUN apk add --no-cache \
ca-certificates \
python
2016-06-09 00:50:08 +02:00
# Get the source
ENV PLEXPY_VERSION v1.4.16
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
git \
&& mkdir -p /opt/plexpy \
&& git clone --depth 1 --branch "${PLEXPY_VERSION}" 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
# Define default command.
ENTRYPOINT ["python", "PlexPy.py"]
CMD ["--nolaunch", "--datadir=/data"]