From 1327bf6f881c58e94b599ef32e1a3ee5e5b0a2cd Mon Sep 17 00:00:00 2001 From: vincent <> Date: Mon, 3 Feb 2025 14:45:53 +0100 Subject: [PATCH] add docker info in readme, add CMD to dockerfile --- Dockerfile | 2 ++ README.md | 21 ++++++++++++++++++++- config.json | 19 ++++++++----------- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 238c076..5c540fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,3 +5,5 @@ WORKDIR /urbridge COPY package.json . RUN npm install COPY . . + +CMD ["node", "index.js"] \ No newline at end of file diff --git a/README.md b/README.md index 74cb5d5..61d1880 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,23 @@ This is a Bridge made to tie Discord Channels and IRC Channels. It works by usin ## Installation -/!\\ CURRENTLY UNDER DEVELOPMENT \ No newline at end of file +### 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 \ No newline at end of file diff --git a/config.json b/config.json index d9561c8..3a266f3 100644 --- a/config.json +++ b/config.json @@ -1,12 +1,9 @@ { - "verbose": true, - "discordChannels": [ - "1161739009614151751", - "727212463988146206", - "1207060538341720104" - - ], - "ircChannels": [ - "#f2ville.dev" - ] -} \ No newline at end of file + "verbose": true, + "discordChannels": [ + "1161739009614151751", + "727212463988146206", + "1207060538341720104" + ], + "ircChannels": ["#f2ville.dev"] +}