From 6d0c0f1986006d5867bb5bdbc3d597c64d8a5331 Mon Sep 17 00:00:00 2001 From: szbk Date: Sun, 24 Mar 2024 13:00:08 +0300 Subject: [PATCH] gitignore change --- .gitignore | 1 - api/Dockerfile | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 api/Dockerfile diff --git a/.gitignore b/.gitignore index fe77604..43283d7 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,5 @@ Procfile dump.rdb error.log output.log -Dockerfile .env.development .env.production diff --git a/api/Dockerfile b/api/Dockerfile new file mode 100644 index 0000000..177bd53 --- /dev/null +++ b/api/Dockerfile @@ -0,0 +1,17 @@ +FROM node:21.5.0 + +RUN mkdir /smarthome +WORKDIR /smarthome + +# RUN npm install -g forever +RUN npm install -g nodemon + +COPY package.json /smarthome +RUN npm install + +COPY . /smarthome + +EXPOSE 9095 + +# CMD ["forever","app.js", "9095"] +CMD ["nodemon","app.js", "9095"] \ No newline at end of file