Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
Jess Frazelle
2016-06-09 13:30:11 -07:00
parent d497485990
commit e6ae327087

View File

@@ -1,6 +1,6 @@
# A Python based monitoring and tracking tool for Plex Media Server. # A Python based monitoring and tracking tool for Plex Media Server.
# #
# docker run -d \ # docker run -d \
# --name=PlexPy \ # --name=PlexPy \
# -v <path to plexlogs>:/data/logs \ # -v <path to plexlogs>:/data/logs \
# -p 8181:8181 \ # -p 8181:8181 \
@@ -10,17 +10,16 @@ FROM alpine:latest
MAINTAINER Cris G c@cristhekid.com MAINTAINER Cris G c@cristhekid.com
# Install required packages. # Install required packages.
RUN \ RUN apk add --no-cache \
apk add --update \ python
git \
python \
&& rm -rf /var/cache/apk/*
# Create Plexpy directory # Get the source
RUN mkdir -p /opt/plexpy RUN set -x \
&& apk add --no-cache --virtual .build-deps \
# Clone the repo. git \
RUN git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ && mkdir -p /opt/plexpy \
&& git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ \
&& apk del .build-deps
# Volume for Plexpy data. # Volume for Plexpy data.
VOLUME /data VOLUME /data
@@ -28,8 +27,9 @@ VOLUME /data
# Set the working directory. # Set the working directory.
WORKDIR /opt/plexpy WORKDIR /opt/plexpy
# Define default command.
CMD ["python", "PlexPy.py", "--nolaunch", "--datadir=/data"]
# Expose ports. # Expose ports.
EXPOSE 8181 EXPOSE 8181
# Define default command.
CMD ["python", "PlexPy.py"]
ENTRYPOINT ["--nolaunch", "--datadir=/data"]