Skip to content

Instantly share code, notes, and snippets.

@trodrigues
Created February 9, 2015 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trodrigues/3220a4a3ed110f3b30cd to your computer and use it in GitHub Desktop.
Save trodrigues/3220a4a3ed110f3b30cd to your computer and use it in GitHub Desktop.
Running docker on a file watcher
/* Dockerfile */
FROM nodesource/node:trusty
COPY . /src
WORKDIR /src
VOLUME .:/src
RUN npm install -g watchy
RUN npm install
/* Build it */
docker build -t sdm_client .
/* Command */
watchy -w public/javascripts -- docker run -i --rm=true sdm_client make all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment