Add Dockerfile

This commit is contained in:
Abel Luck 2022-07-22 12:53:34 +00:00
parent 80c6fbd7bb
commit be8d7d6eee
7 changed files with 71 additions and 34 deletions

View file

@ -2,8 +2,24 @@
a bot for ops in matrix
## Dev Setup
## Usage
```
docker build -t registry.gitlab.com/guardianproject-ops/matrix-ops-bot .
docker run --rm \
--name ops-bot \
--volume /path/to/store:/data \
--env MATRIX_HOMESERVER=https://matrix.org \
--env MATRIX_USER_ID=@YOURBOT:matrix.org \
--env MATRIX_PASSWORD="changeme" \
--env MATRIX_DEVICE_NAME=my-bot-server \
--env BOT_ROUTING_KEYS="{\"room1\": \"!XXXX:matrix.org\", \"room2\": \"!YYYYY:matrix.org\"}" \
--env BOT_BEARER_TOKEN="changeme" \
registry.gitlab.com/guardianproject-ops/matrix-ops-bot
```
## Dev Setup
`.env`:
```