remove old unused docker images, update version
[discourse_docker.git] / image / discourse_dev / Dockerfile
1 FROM samsaffron/discourse_fast_switch
2
3 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
4
5 RUN apt-get install -y vim &&\
6 wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
7 RUN tar -xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
8 RUN rm phantomjs-1.9.7-linux-x86_64.tar.bz2
9 RUN cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /bin/phantomjs
10 RUN rm -fr phantomjs-1.9.7-linux-x86_64
11 RUN cd opt && git clone https://github.com/SamSaffron/vim-setup.git
12 RUN cd opt/vim-setup && git submodule update --init
13 RUN ln -s /opt/vim-setup/vimrc /etc/vim/vimrc.local
14 RUN ln -s /opt/vim-setup/vimfiles/bundle /etc/vim/bundle
15 RUN apt-get -y install ctags
16 RUN apt-get -y install silversearcher-ag
17 RUN cd /var/www/discourse && rm -fr .bundle && sudo -u discourse bundle install --standalone