main: created docker files

This commit is contained in:
Gary 2024-01-03 19:02:30 -08:00
parent 07e02fa07e
commit 716c37225c
2 changed files with 17 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM node:14-alpine
WORKDIR /remnantchat/
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3'
services:
remnantchat:
build: .
ports:
- '3000:3000'
volumes:
- '.:/remnantchat/'
environment:
- NODE_ENV=production