Adding some docker and terraform to it ... wip
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
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 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