Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created May 19, 2020 18:38
Show Gist options
  • Save suru-dissanaike/5d633e3a2c03ee1ad1561c07eb19d4d7 to your computer and use it in GitHub Desktop.
Save suru-dissanaike/5d633e3a2c03ee1ad1561c07eb19d4d7 to your computer and use it in GitHub Desktop.
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