-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
executable file
·47 lines (33 loc) · 1.85 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Download Ubuntu base image from phusion
# https://github.com/phusion/baseimage-docker
FROM phusion/baseimage:latest
# Define working directory
WORKDIR /opt/
# Prepare for Basic stuff
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install software-properties-common apt-transport-https curl -y
# Register the trusted Microsoft signature key
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
# Register the Microsoft Product feed for your distro version
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
# Add ffmpeg3 ppa
RUN add-apt-repository ppa:jonathonf/ffmpeg-3
# Updating existing tools
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
# Install Git
RUN apt-get update && apt-get install -y git
# Install .Net Core
RUN apt-get update && apt-get install -y dotnet-sdk-2.1
# Install Redis-server
RUN apt-get update && apt-get install -y redis-server
# Install required software
RUN apt-get update && apt-get install -y libopus0 opus-tools libopus-dev libsodium-dev ffmpeg rsync python python3-pip python3.5-dev tzdata
#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 -H "Cache-Control: no-cache" https://raw.githubusercontent.com/willysunny/Nadecker/master/nadeko_installer_2_28_3.sh -o ./nadeko_installer.sh && chmod 755 nadeko_installer.sh && ./nadeko_installer.sh
RUN curl -O -H "Cache-Control: no-cache" https://raw.githubusercontent.com/willysunny/Nadecker/master/nadeko_autorestart.sh && chmod 755 nadeko_autorestart.sh
VOLUME ["/root/nadeko"]
CMD ["sh","/opt/nadeko_autorestart.sh"]