Add docker files for serve as prod
This commit is contained in:
parent
5692d21ae1
commit
bd9cfdc079
2 changed files with 21 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue