Last active
November 2, 2017 17:15
-
-
Save zparnold/b774069deb1219fbc8daaaa802660aaa to your computer and use it in GitHub Desktop.
Ygrene Rails Base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM phusion/passenger-ruby23:0.9.26 | |
#OS Level stuff | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
mysql-client build-essential memcached nodejs git pdftk chrpath libssl-dev libxft-dev \ | |
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev vim wget nano awscli less unzip zlib1g-dev libxslt-dev | |
#PhantomJS | |
RUN wget "https://s3-us-west-2.amazonaws.com/ygrene-public-artifacts/phantomjs-2.1.1-linux-x86_64.tar.bz2" && \ | |
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/ && \ | |
ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/ | |
RUN cd /var/ && wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem | |
ENV BUNDLE_PATH /bundle | |
RUN gem install bundler | |
ENV APP_HOME /home/app | |
WORKDIR $APP_HOME | |
# Enable nginx/passenger | |
RUN rm -f /etc/service/nginx/down | |
# Disable SSH | |
# Some discussion on this: https://news.ycombinator.com/item?id=7950326 | |
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment