From e6ae327087d1e45cd9fddf31cb3189652ae56cd2 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Thu, 9 Jun 2016 13:30:11 -0700 Subject: [PATCH] cleanup Signed-off-by: Jess Frazelle --- plexpy/Dockerfile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/plexpy/Dockerfile b/plexpy/Dockerfile index 45f451c..50239d5 100644 --- a/plexpy/Dockerfile +++ b/plexpy/Dockerfile @@ -1,6 +1,6 @@ # A Python based monitoring and tracking tool for Plex Media Server. # -# docker run -d \ +# docker run -d \ # --name=PlexPy \ # -v :/data/logs \ # -p 8181:8181 \ @@ -10,17 +10,16 @@ FROM alpine:latest MAINTAINER Cris G c@cristhekid.com # Install required packages. -RUN \ - apk add --update \ - git \ - python \ - && rm -rf /var/cache/apk/* +RUN apk add --no-cache \ + python -# Create Plexpy directory -RUN mkdir -p /opt/plexpy - -# Clone the repo. -RUN git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ +# 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 # Volume for Plexpy data. VOLUME /data @@ -28,8 +27,9 @@ VOLUME /data # Set the working directory. WORKDIR /opt/plexpy -# Define default command. -CMD ["python", "PlexPy.py", "--nolaunch", "--datadir=/data"] - # Expose ports. EXPOSE 8181 + +# Define default command. +CMD ["python", "PlexPy.py"] +ENTRYPOINT ["--nolaunch", "--datadir=/data"]