forked from g0v/Logbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (22 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from ubuntu:precise
run echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu precise main" >> /etc/apt/sources.list
run echo "deb http://ppa.launchpad.net/chris-lea/redis-server/ubuntu precise main" >> /etc/apt/sources.list
run gpg --keyserver keyserver.ubuntu.com --recv-keys F5DA5F09C3173AA6 B9316A7BC7917B12
run gpg --armor --export F5DA5F09C3173AA6 | apt-key add -
run gpg --armor --export B9316A7BC7917B12 | apt-key add -
run apt-get update -qq
run apt-get install -qq --force-yes -y ca-certificates ruby2.2 redis-server
add . /
run gem install bundler rack jellyfish cinch redis --no-ri --no-rdoc
run apt-get install -qq --force-yes -y build-essential ruby2.2-dev
run bundle install
run compass compile
run cp logbot.rb.example logbot.rb
run cp dump.rdb.example dump.rdb
run cp redis.conf /etc/redis/redis.conf
expose 6379
expose 15000
env LOGBOT_NICK genericnondescripguy
env LOGBOT_SERVER ragnarok.k0nsl.org
env LOGBOT_CHANNELS #k0nsl
cmd ["sh", "-c", "/usr/bin/redis-server | foreman start"]