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:
@@ -3,7 +3,7 @@ FROM node:alpine
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN npm install
|
RUN apk add git && npm install
|
||||||
|
|
||||||
CMD npm start
|
CMD npm start
|
||||||
|
|
||||||
|
@@ -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).
|
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.
|
3. Copy `example.config.js` to `config.js` and edit it.
|
||||||
4. Run `docker build -t the_guard_bot .` to build image.
|
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.
|
Now you can add the bot as **administrator** to your groups.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user