From 29aede18f9fb16baf0840a998366f1e7ef7f6d46 Mon Sep 17 00:00:00 2001 From: Gary Date: Wed, 3 Jan 2024 19:02:30 -0800 Subject: [PATCH] main: created docker files --- Dockerfile | 7 +++++++ docker-compose.yml | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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