add docker info in readme, add CMD to dockerfile

This commit is contained in:
vincent 2025-02-03 14:45:53 +01:00
parent 46c6d31c7d
commit 1327bf6f88
3 changed files with 30 additions and 12 deletions

View file

@ -5,3 +5,5 @@ WORKDIR /urbridge
COPY package.json .
RUN npm install
COPY . .
CMD ["node", "index.js"]

View file

@ -4,4 +4,23 @@ This is a Bridge made to tie Discord Channels and IRC Channels. It works by usin
## Installation
/!\\ CURRENTLY UNDER DEVELOPMENT
### docker
build l'image:
```bash
docker build -t urbridge:latest .
```
run un container temporaire (pour l'instant le bot ne sauve aucune data, donc il n'y a pas d'inconvénient à le recréer à chaque démarrage et delete quand il est arêté):
```bash
docker run -t urlab_viaduk --rm --env-file .env urbridge:latest
```
il faut un fichier .env spécifiant les variables suivantes:
- DISCORD_TOKEN,
- IRC_HOST, l'adresse du serveur irc
- IRC_PORT, le port
- NICKNAME, le nom du bridge sur irc

View file

@ -1,12 +1,9 @@
{
"verbose": true,
"discordChannels": [
"1161739009614151751",
"727212463988146206",
"1207060538341720104"
],
"ircChannels": [
"#f2ville.dev"
]
}
"verbose": true,
"discordChannels": [
"1161739009614151751",
"727212463988146206",
"1207060538341720104"
],
"ircChannels": ["#f2ville.dev"]
}