FROM centos MAINTAINER ecin RUN yum -y update RUN yum -y groupinstall "Development Tools" # Install Node RUN curl -LO https://github.com/joyent/node/archive/v0.10.25.zip RUN unzip v0.10.25.zip RUN cd node-0.10.25 && ./configure && make install # Install Ghost RUN curl -LO https://ghost.org/zip/ghost-0.4.1.zip RUN unzip ghost-0.4.1.zip -d ghost RUN cd ghost && npm install --production # Install supervisor RUN npm install -g forever # Run Ghost EXPOSE 2368 ENV NODE_ENV production ENV GHOST_CONFIG /tmp/config/ghost.js CMD ["/usr/local/bin/forever", "-f", "start", "ghost/index.js"]