Commit a2d31552 authored by flint media's avatar flint media

Update Dockerfile

parent 88fca025
......@@ -6,7 +6,7 @@ RUN useradd -m -d /var/www/peertube -s /bin/bash -p peertube peertube && echo "p
#&& chown peertube:peertube /var/www/peertube
RUN apt-get update && apt-get install -y curl
RUN $ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && echo "Latest Peertube version is $VERSION, current version is $PEERTUBE_VER"
RUN VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && echo "Latest Peertube version is $VERSION, current version is $PEERTUBE_VER"
RUN cd /var/www/peertube && -u peertube mkdir config storage versions
RUN cd versions && -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip"
RUN -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment