Add docker files for serve as prod

This commit is contained in:
Amir Husayn Panahifar 2025-04-08 00:52:03 +03:30
parent 5692d21ae1
commit bd9cfdc079
2 changed files with 21 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM node:22-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --verbose
COPY . .
EXPOSE 3000
CMD [ "node", "src/main.js" ]

8
docker-compose.yml Normal file
View file

@ -0,0 +1,8 @@
services:
bot:
build: .
container_name: parchex-bot
restart: unless-stopped
volumes:
- .:/usr/src/app
network_mode: host