Skip to content

Instantly share code, notes, and snippets.

@brtriver
Last active August 29, 2015 13:57
Show Gist options
  • Save brtriver/9720539 to your computer and use it in GitHub Desktop.
Save brtriver/9720539 to your computer and use it in GitHub Desktop.
FROM centos:6.4
MAINTAINER Masao Maeda
RUN yum install -y git ruby rubygems
RUN gem install bundler
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
RUN yum install -y npm
# phantomjs
RUN curl -L -o /tmp/phamtomjs.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN tar -jxf /tmp/phamtomjs.tar.bz2 -C /tmp/
RUN find ./ -name phantomjs | xargs -i cp {} /usr/bin/
RUN mkdir -p /var/app
ADD ./scripts/setup.sh /var/
RUN useradd -d /home/app -m -s /bin/bash app
RUN echo app:app | chpasswd
# add setup.sh script to image from host
ADD ./scripts/setup.sh /var/app/
RUN chown app:app /var/app/setup.sh
RUN chmod +x /var/app/setup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment