From dad97a7bb5c48ee4af06e7cab95c8c95dee6d3b5 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Tue, 27 Dec 2016 17:31:38 -0800 Subject: [PATCH] update how the git repo is checked out for future updates Signed-off-by: Jess Frazelle --- plexpy/Dockerfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/plexpy/Dockerfile b/plexpy/Dockerfile index 18680b0..0209a30 100644 --- a/plexpy/Dockerfile +++ b/plexpy/Dockerfile @@ -2,26 +2,24 @@ # # docker run -d \ # --name=PlexPy \ -# -v :/data/logs \ +# -v :/data \ # -p 8181:8181 \ -# arukaen/plexpy - +# r.j3ss.co/plexpy FROM alpine:latest -MAINTAINER Cris G c@cristhekid.com # Install required packages. RUN apk add --no-cache \ ca-certificates \ + git \ python # 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 +RUN git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy \ + && ( \ + cd /opt/plexpy \ + && git checkout "${PLEXPY_VERSION}" \ + ) # Volume for Plexpy data. VOLUME /data