add docker stuff
This commit is contained in:
parent
3cea70c4f4
commit
24ec8e3b80
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM ruby:latest
|
||||
|
||||
WORKDIR /bot
|
||||
|
||||
RUN apt-get update && apt-get install -y sqlite3 libsqlite3-dev
|
||||
|
||||
COPY Gemfile /bot
|
||||
|
||||
RUN gem install bundler
|
||||
RUN bundle install
|
||||
|
||||
COPY . /bot
|
||||
|
||||
CMD ["ruby", "bot.rb"]
|
7
compose.yml
Normal file
7
compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
jon:
|
||||
build: .
|
||||
volumes:
|
||||
- .env:/bot/.env
|
||||
- jon.sqlite:/bot/jon.sqlite
|
||||
command: ruby bot.rb
|
Loading…
Reference in New Issue
Block a user