Merge pull request #16 from Synthintel0/main
add Dockerfile to discord-bot
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
FROM node:19-alpine
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN npm install
|
||||
CMD ["sh", "-c", "npm run start:bot"]
|
||||
@@ -38,3 +38,14 @@ Using Jarvis Discord Bot you can interact with Jarvis through Discord app on var
|
||||
- Copy and paste the previously obtained `Token` and `CLIENT ID` into the `.env.local` file.
|
||||
- run `npm install`.
|
||||
- run `npm run start:bot`.
|
||||
### Running the bot in docker
|
||||
```
|
||||
# build docker image
|
||||
docker build -t jarvis-discord-bot .
|
||||
|
||||
docker run -d --name jarvis-discord-bot \
|
||||
-e CLIENT_ID='Your Client ID' \
|
||||
-e BOT_TOKEN='Your Bot Token' \
|
||||
-e WEBSOCKET_PORT=10000 \
|
||||
jarvis-discord-bot:latest
|
||||
```
|
||||
Reference in New Issue
Block a user