Add version support

This commit is contained in:
Dryusdan 2018-01-18 08:35:11 +01:00
parent 0cb6922bf0
commit ff8058b655

View file

@ -1,5 +1,7 @@
FROM debian:jessie-slim
ARG PEERTUBE_VER=develop
ENV UID=991 GID=991 \
HTTPS=false \
HOSTNAME=peertube.localhost \
@ -35,7 +37,7 @@ RUN groupadd -g 991 peertube && useradd -u 991 -g 991 --create-home peertube \
&& apt-get update \
&& apt-get -y install -y nodejs yarn --no-install-recommends \
&& echo "****** Clone Peertube ******" \
&& git clone --branch develop https://github.com/Chocobozzz/PeerTube /PeerTube \
&& git clone --branch ${PEERTUBE_VER} https://github.com/Chocobozzz/PeerTube /PeerTube \
&& echo "****** chown ******" \
&& chown -R peertube:peertube PeerTube \
&& cd /PeerTube \