diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ebba021 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:20-alpine + +WORKDIR /app + +COPY package*.json ./ +RUN npm ci --omit=dev + +COPY . . + +EXPOSE 5000 + +CMD ["node", "broccolini-discord.js"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7dd7222 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +services: + broccolini: + build: . + image: broccolini-bot + container_name: broccolini + restart: unless-stopped + env_file: .env + ports: + - "100.114.205.53:8892:5000" + healthcheck: + test: ["CMD", "wget", "-qO-", "http://localhost:5000/"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 15s