Public Repository

Last pushed: 2 years ago
Short Description
Passenger 5.0.13 with Ruby 2.2.2 for Ruby Apps
Full Description
  FROM ubuntu:14.04.2
  MAINTAINER Dave Collier "lardelbow@gmail.com" 

  # Set locale to GB
  RUN localedef -i en_GB -c -f UTF-8 -A /usr/share/locale/locale.alias en_GB.UTF-8
  ENV LANG en_GB.utf8

  # Install build tools
  RUN apt-get update \
  && apt-get install -y wget \
  && apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

  # Install Ruby v2.2.2 from Source
  RUN wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz \
  && tar -xzvf ruby-2.2.2.tar.gz \
  && cd ruby-2.2.2/ \
  && ./configure \
  && make \
  && make install \
  && rm -f /ruby-2.2.2.tar.gz \
  && rm -rf /ruby-2.2.2

  # Install bundler
  RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc \
  && gem install bundler

  # Install Passenger & Nginx
  RUN gpg --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7 \
  && gpg --armor --export 561F9B9CAC40B2F7 | sudo apt-key add - \

  # Add HTTPS support to APT
  && apt-get install -y apt-transport-https \

  # Add the passenger repository
  && sh -c "echo 'deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main' >> /etc/apt/sources.list.d/passenger.list" \
  && chown root: /etc/apt/sources.list.d/passenger.list \
  && chmod 600 /etc/apt/sources.list.d/passenger.list \
  && apt-get update \

  # Install nginx and passenger
  && apt-get install -y nginx-full passenger \
  && service nginx restart

  # Clean up APT when done. 
  RUN apt-get clean \
      && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Docker Pull Command
Owner
docswebapps

Comments (0)