From deaf25e439b367a0b607252b9fab213b60045352 Mon Sep 17 00:00:00 2001 From: Styler Date: Fri, 15 Dec 2017 14:26:44 +0100 Subject: [PATCH] Added readme --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 41dc111..dfda9e5 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,14 @@ Then copy the `config.default.json` file to `config.json`, enter your credential ## Usage Add the bot to your discord server with the correct privileges and then run `/bee :emote:` The bot spawns an HTTP server on port 3002 on localhost, so you can use that - `http://host/bee?url=` + +## Docker + +### Build the container +You can build the container with the following command `npm run docker` + +### Run the image +Running your image with -d runs the container in detached mode, leaving the container running in the background. The -p flag redirects a public port to a private port inside the container. Run the image you previously built: +```bash +$ docker run -p 3002:3002 -d beebot:latest +``` \ No newline at end of file