diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f03549e --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/assets/docker-cadence-250px.png b/assets/docker-cadence-250px.png new file mode 100644 index 0000000..b7297de Binary files /dev/null and b/assets/docker-cadence-250px.png differ