fork of https://f-hub.org/XMPP/xmpp-discord-bridge

Add a Dockerfile

+19 -1
+9 -1
README.md
··· 23 23 24 24 Create and edit `~/config.toml`. Refer to [example.toml](docs/example.toml) for options. 25 25 26 + ## Build Dockerfile 27 + 28 + Navigate to the repository root and run the following command (Note that you can substitute `podman` with `docker`): 29 + 30 + ```shell 31 + podman build -t xmpp-discord-bridge:latest -f contrib/Dockerfile . 32 + ``` 33 + 26 34 ### XMPP 27 35 28 36 In order for the bridge to work, it needs to have an affiliation of `owner` before joining. Going off of the example.toml, it would have the JID of `bot@discord.example.com`. ··· 51 59 52 60 Now it's time to invite your bot to your server. Don't worry about your bot being started for this next step. On the left-hand menu click "OAuth2" and copy the Client ID into this URL then navigate to it. 53 61 54 - https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=536870912 62 + https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=536870912 55 63 56 64 The "permissions=536870912" at the end of the URL corresponds to the "Manage Webhooks" permission. It is required for the bridge to work correctly. 57 65
+10
contrib/Dockerfile
··· 1 + FROM python:3.13.2-alpine 2 + 3 + COPY . /build 4 + WORKDIR /build 5 + RUN apk add --no-cache git cargo && \ 6 + pip3 install . && \ 7 + apk del git cargo && \ 8 + rm -rf /build 9 + 10 + ENTRYPOINT ["xmpp-discord-bridge"]