add dockerfile

This commit is contained in:
Tomoya Matsuura(MacBookPro) 2024-03-04 12:26:56 +09:00
parent 28a8829128
commit 04d68b823f
2 changed files with 12 additions and 0 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM node:20-alpine
WORKDIR /app
COPY . .
RUN npm install
CMD "node" "main.js"

7
compose.yml Normal file
View File

@ -0,0 +1,7 @@
services:
bot:
build: .
restart: unless-stopped
volumes:
- ./lastProcessedPostId.txt:/app/lastProcessedPostId.txt
- ./.env:/app/.env