Merge pull request #140 from sloraris/main

Added dockerfile (manual config.js version), added Cadence-docker logo
This commit is contained in:
Marius Begby authored and GitHub committed 2023-08-01 07:27:38 +02:00
commit de3f31ea9a
2 files changed
+22

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
## Using Node 18.16.1 (LTS) on Alpine base
FROM node:18.16-alpine
## Install npm build dependencies
RUN apk add --no-cache python3 make build-base ffmpeg git
## Install Cadence
RUN git clone https://github.com/mariusbegby/cadence-discord-bot.git
## Run all subsequent commands from cadence root
WORKDIR /cadence-discord-bot
# Copy .env and config.js to docker container
COPY .env .env
COPY config.js src/config.js
## Install node_modules
RUN npm install --legacy-peer-deps
RUN npm run deploy
## Cadence startup command
CMD [ "npm", "start" ]
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB