diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6ffb147 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:20-alpine + +WORKDIR /app + +COPY package.json ./ +RUN npm install --ignore-scripts + +COPY . . + +CMD ["node", "Start_Bot_Roles.js"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..727a37a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + bot: + build: . + image: rolelist-bot + container_name: rolelist-bot + restart: unless-stopped + volumes: + - ./config.json:/app/config.json + - ./logs:/app/logs