From 24ec8e3b804d1f7cfd5937bb3b1d55c0c2d3292a Mon Sep 17 00:00:00 2001 From: fzorb Date: Thu, 3 Oct 2024 22:22:26 +0300 Subject: [PATCH] add docker stuff --- Dockerfile | 14 ++++++++++++++ compose.yml | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bd93b24 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..8591790 --- /dev/null +++ b/compose.yml @@ -0,0 +1,7 @@ +services: + jon: + build: . + volumes: + - .env:/bot/.env + - jon.sqlite:/bot/jon.sqlite + command: ruby bot.rb