cleanup directory strucutre and fine tune
This commit is contained in:
18
app/Dockerfile
Normal file
18
app/Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user