2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 13:47:54 +00:00

Streamline Docker (#112)

* Add git to Docker image
* Bind mount /data for persistence
This commit is contained in:
Sathyajith Bhat
2020-03-08 15:21:48 +02:00
committed by GitHub
parent 7744b0d83c
commit fe48a65c83
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ FROM node:alpine
COPY . /app
WORKDIR /app
RUN npm install
RUN apk add git && npm install
CMD npm start

View File

@@ -27,7 +27,7 @@ You need to have [docker](https://docs.docker.com/engine/installation/linux/dock
2. Clone this repository or [download zip](https://github.com/TheDevs-Network/the-guard-bot/archive/master.zip).
3. Copy `example.config.js` to `config.js` and edit it.
4. Run `docker build -t the_guard_bot .` to build image.
5. Run `docker run --rm -itd the_guard_bot` to start the bot.
5. Run `docker run -v $(pwd)/data:/app/data --rm -itd the_guard_bot` to start the bot.
Now you can add the bot as **administrator** to your groups.