Add docker files for serve as prod
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
bot:
|
||||
build: .
|
||||
container_name: parchex-bot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
network_mode: host
|
||||
Reference in New Issue
Block a user