mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
Merge pull request #140 from sloraris/main
Added dockerfile (manual config.js version), added Cadence-docker logo
This commit is contained in:
2 files changed
+22
No files matched your search
+22
@@ -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 |
Reference in new issue
Block a user