Skip to content

Instantly share code, notes, and snippets.

@urodoz
Created April 15, 2017 09:41
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 urodoz/f6a3b1a7320895e23c3f516190d6e0ac to your computer and use it in GitHub Desktop.
Save urodoz/f6a3b1a7320895e23c3f516190d6e0ac to your computer and use it in GitHub Desktop.
Circus in Dockerfile
FROM node:7.9.0
MAINTAINER Albert Lacarta <albert.lacarta@rqlogic.com>
RUN npm install -g bower@1.8.0 && \
npm install -g node-sass && \
npm install -g http-server && \
npm install -g gulp-cli
# Install circus to handle processes
RUN apt-get update && apt-get install -y python-pip python python-dev
RUN pip install circus
ADD circus.ini /etc/circus.ini
CMD circusd /etc/circus.ini
WORKDIR /opt/code
RUN touch /var/log/supervisord.log && chown node.node /var/log/supervisord.log
USER node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment