content: # Use the latest Node v6 (LTS) release
  FROM node:6
  
  # We use dumb-init since Node.js is pretty terrible at running as PID 1
  RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 \
   && chmod +x /usr/local/bin/dumb-init
  
  # wait.sh forces our app to wait for other containers to come up before starting
  # Should pull this into the repo to cache it or use the included wait scritp that comes with newer docker
  # We shouldn't have to do this at all however. Our services should wait for other services until they are alive.
  RUN wget -O /bin/wait.sh https://raw.githubusercontent.com/Storj/storj-sdk/master/scripts/wait.sh
  
  RUN mkdir /storj && mkdir /storj/bridge
  
  # We will run our application from /usr/src/app to be a good linux citizen
  # Possibly should use /opt/storj or /storj/bridge
  WORKDIR /storj/bridge
  
  # Cache node_modules
  ADD package.json .
  
  # Thanks to the above line, npm install only re-runs if package.json changes
  RUN npm install
  
  # Finally add in all of our source files
  ADD . .
  
  # The default command this container will run is the bridge, but the user can pass in their own commands which get handled by wait.sh and dumb-init.
  CMD ["./bin/storj-bridge.js"]
  