add docker stuff

This commit is contained in:
fzorb 2024-10-03 22:22:26 +03:00
parent 3cea70c4f4
commit 24ec8e3b80
2 changed files with 21 additions and 0 deletions

14
Dockerfile Normal file
View 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
View File

@ -0,0 +1,7 @@
services:
jon:
build: .
volumes:
- .env:/bot/.env
- jon.sqlite:/bot/jon.sqlite
command: ruby bot.rb