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