From e462697ab6242a3a3549edc827504ca3a4f362ad Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 25 Feb 2021 11:20:54 -0600 Subject: [PATCH] Add Docker support with Dockerfile --- Dockerfile | 3 +++ README.md | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a0ea9b6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM node:latest +RUN npm i -g awscibo +CMD ["awscibo", "yourbottokenhere"] diff --git a/README.md b/README.md index 37511eb..44a0b1f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,22 @@ cd AwesomeSciBo/bot && npm i node awesomescibo.mjs ``` +### Option 3: Dockerfile +#### Steps +1) Clone repo +``` +git clone https://github.com/ADawesomeguy/AwesomeSciBo.git +``` +2) Enter repo and edit bot token in Dockerfile +``` +cd AwesomeSciBo. +vim Dockerfile +``` +3) Build and run Docker image +``` +docker build -t awscibo . +docker run --name awscibo -d awscibo +``` ## Usage To get started, run the command `do be helping` to get a list of commands. The more helpful commands will be the ones that generate packets, which are `do be roundgen pdf/html` and `do be roundgen pdf/html dm`.