From ce0a5d1d0da0343c106f3149671aadbd555ae61a Mon Sep 17 00:00:00 2001 From: Poag Date: Tue, 11 Jul 2017 11:30:57 +0100 Subject: [PATCH] Phusion migration (#3) * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile * Update DockerFile --- DockerFile | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/DockerFile b/DockerFile index 4a67bd9..81984af 100644 --- a/DockerFile +++ b/DockerFile @@ -1,20 +1,27 @@ -FROM microsoft/dotnet:1.1.2-sdk -MAINTAINER Poag +FROM phusion/baseimage:latest WORKDIR /opt/ +#Install Dotnet +RUN sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' \ + && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 \ + && apt-get update && apt-get install -y dotnet-dev-1.0.4 + +#Add ffmpeg3 ppa +RUN add-apt-repository ppa:jonathonf/ffmpeg-3 + #Install required software -RUN echo "deb http://www.deb-multimedia.org jessie main non-free" | tee /etc/apt/sources.list.d/debian-backports.list \ - && apt-get update \ - && apt-get install -y --force-yes deb-multimedia-keyring \ - && apt-get update \ - && apt-get install -y git libopus0 opus-tools libopus-dev libsodium-dev ffmpeg youtube-dl +RUN apt-get update && apt-get install -y git libopus0 opus-tools libopus-dev libsodium-dev ffmpeg rsync python + +#Add youtube-dl +RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl #Download and install stable version of Nadeko -RUN curl -L https://raw.githubusercontent.com/Poag/nadeko/1.4/nadeko_installer_1_4.sh | sh \ - && curl -L https://raw.githubusercontent.com/Poag/nadeko/1.4/nadeko_autorestart.sh > nadeko.sh \ - && chmod 755 nadeko.sh - +RUN curl -O https://raw.githubusercontent.com/Poag/nadeko/1.4/nadeko_installer_1_4.sh && chmod 755 nadeko_installer_1_4.sh && ./nadeko_installer_1_4.sh \ + && curl -O https://raw.githubusercontent.com/Poag/nadeko/1.4/nadeko_autorestart.sh && chmod 755 nadeko_autorestart.sh + + + VOLUME ["/root/nadeko"] -CMD ["/opt/nadeko.sh"] +CMD ["sh","/opt/nadeko_autorestart.sh"]