# setup a centos image with flocore binary components FROM centos:latest MAINTAINER Chris Kleeschulte RUN yum -y install git curl which xz tar findutils RUN groupadd flocore RUN useradd flocore -m -s /bin/bash -g flocore ENV HOME /home/flocore USER flocore RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash RUN /bin/bash -l -c "nvm install v4 && nvm alias default v4" RUN /bin/bash -l -c "npm install flocore -g"