You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.9 KiB

FROM debian:buster
DEBIAN_FRONTEND=noninteractive \
apt-get clean \
&& apt-get update \
&& apt-get install --no-install-recommends -qy \
mpd mpc tmux bzip2 patch curl libyaml-dev git libopus-dev \
build-essential zlib1g zlib1g-dev libssl-dev ruby \
ruby-dev rubygems automake autoconf libtool psmisc \
util-linux supervisor ca-certificates libogg-dev python-pip \
ffmpeg cron \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /opt/musicbot/src
git clone \
&& git clone \
&& git clone \
&& git clone celt \
&& git clone \
&& (cd mumble-ruby-pluginbot && git checkout -b devel --track origin/devel)
RUN rm /opt/musicbot/src/mumble-ruby-pluginbot/plugins/radiostream.rb
WORKDIR /opt/musicbot/src/mumble-ruby
RUN gem build mumble-ruby.gemspec
RUN gem install mumble-ruby-*.gem
RUN gem install ruby-mpd
RUN gem install crack
WORKDIR /opt/musicbot/src/celt-ruby
RUN gem build celt-ruby.gemspec
RUN gem install celt-ruby
WORKDIR /opt/musicbot/src/celt
./ &&\
./configure --prefix=/opt/musicbot/src/celt &&\
make &&\
make install
WORKDIR /opt/musicbot/src/opus-ruby
RUN gem build opus-ruby.gemspec
RUN gem install opus-ruby
RUN pip install youtube-dl
WORKDIR /opt/musicbot
ADD conf/config.yml /opt/musicbot/src/mumble-ruby-pluginbot/config/config.yml
ADD conf/supervisord.conf /etc/supervisor/conf.d/
ADD conf/mpd.conf /opt/musicbot/mpd.conf
ADD conf/crontab.txt /tmp/crontab.txt
RUN chown -R daemon: /opt/musicbot
RUN chown daemon: /var/lib/mpd/music
RUN crontab /tmp/crontab.txt
ENTRYPOINT [ "supervisord" ]