Skip to content

Instantly share code, notes, and snippets.

@Craigson
Last active January 8, 2021 14:40
Show Gist options
  • Select an option

  • Save Craigson/cf93a8245e07c24a1c6df0866486c2dc to your computer and use it in GitHub Desktop.

Select an option

Save Craigson/cf93a8245e07c24a1c6df0866486c2dc to your computer and use it in GitHub Desktop.
The Publisher's Dockerfile for the Syntropy Stack MQTT Network example
FROM node:12
# Create app directory
WORKDIR /usr/src/app
# 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
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
CMD [ "node", "publisher.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment