gitignore change

This commit is contained in:
2024-03-24 13:00:08 +03:00
parent 518a1bdcb9
commit 6d0c0f1986
2 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@@ -43,6 +43,5 @@ Procfile
dump.rdb
error.log
output.log
Dockerfile
.env.development
.env.production

17
api/Dockerfile Normal file
View File

@@ -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"]