Created
May 19, 2020 18:38
-
-
Save suru-dissanaike/5d633e3a2c03ee1ad1561c07eb19d4d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12.13.0 | |
# Create app directory | |
WORKDIR /usr/src/backend-mqtt-database-service | |
# Install app dependencies | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
# where available (npm@5+) | |
COPY package*.json ./ | |
RUN npm install | |
#http://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/ | |
# Bundle app source | |
COPY . . | |
#CMD ["node", "index.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment