cleanup directory strucutre and fine tune

This commit is contained in:
Joe Tretter
2022-09-30 10:55:07 -05:00
parent dae7fbc9e7
commit 9b25fa2eda
19 changed files with 69 additions and 27 deletions

18
app/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM node:current-slim
# To Create nodejsapp directory
WORKDIR /nodejsapp
# To Install All dependencies
COPY package*.json .
RUN npm install
# To copy all application packages
COPY . .
# expose the data dir as a volume
VOLUME [ "dataDir" ]
# Expose port 1280 and Run the server.js file to start node js application
EXPOSE 1280
CMD [ "node", "dumbserver.js" ]