FROM debian:stretch-slim RUN apt-get -yqq update \ && DEBIAN_FRONTEND=noninteractive \ apt-get -yqq --no-install-recommends install \ build-essential ca-certificates curl dialog ffmpeg iproute2 iputils-ping libxml2-utils locales perl perl-doc phantomjs socat uni2ascii unzip vlc wget \ && rm -rf /var/lib/apt/lists/* # Install CPAN and the required modules to parse JSON files RUN curl -L https://cpanmin.us | perl - App::cpanminus && cpanm install JSON && cpanm install utf8 # Download and unzip the file and set system-wide permissions to the folder and its related files WORKDIR ~ ENV ZTVH_VERSION=0.5.5 RUN wget -O ~/ztvh.zip https://github.com/sunsettrack4/zattoo_tvh/archive/v${ZTVH_VERSION}.zip \ && unzip ~/ztvh.zip \ && mv zattoo_tvh-${ZTVH_VERSION} ~/ztvh \ && chmod 0777 ~/ztvh \ && chmod 0777 ~/ztvh/* \ && rm ~/ztvh.zip # Set the locale for correct ASCII line renderings RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ dpkg-reconfigure --frontend=noninteractive locales && \ update-locale LANG=en_US.UTF-8 ENV LANG en_US.UTF-8 ENV NCURSES_NO_UTF8_ACS=1 WORKDIR ~/ztvh