FROM samsaffron/discourse_21:2.1.2.1 MAINTAINER Sam Saffron "https://twitter.com/samsaffron" RUN apt-get install -y vim &&\ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\ tar -xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\ rm phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\ cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /bin/phantomjs &&\ rm -fr phantomjs-1.9.7-linux-x86_64 RUN cd /var/www/discourse &&\ chown -R discourse . &&\ rm -fr .bundle &&\ sudo -u discourse git pull &&\ sudo -u discourse bundle install --standalone &&\ chown -R discourse /var/run/postgresql # RUN cd /var/www/discourse &&\ # sudo -u discourse git pull &&\ # sudo -u discourse bundle install --standalone WORKDIR /var/www/discourse ENV LANG en_US.UTF-8 ENTRYPOINT sudo -E -u discourse ruby script/docker_test.rb