diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fbd8032 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:14-alpine +WORKDIR /remnantchat/ +COPY package*.json ./ +RUN npm install +COPY . . +EXPOSE 3000 +CMD ["npm", "start"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0584fc1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' +services: + remnantchat: + build: . + ports: + - '3000:3000' + volumes: + - '.:/remnantchat/' + environment: + - NODE_ENV=production