mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-01 14:38:48 +00:00
23 lines
548 B
Docker
23 lines
548 B
Docker
## 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" ]
|