Skip to content

Instantly share code, notes, and snippets.

@kalelc
Last active August 29, 2015 14:17
Show Gist options
  • Save kalelc/2237e6c6a9a43a762c3a to your computer and use it in GitHub Desktop.
Save kalelc/2237e6c6a9a43a762c3a to your computer and use it in GitHub Desktop.
Passenger, nginx and rails
# Version: 0.1
# Get from ubuntu 14.04 version
FROM ubuntu:14.04
MAINTAINER Andres Colonia "[email protected]"
# Install git client
RUN apt-get -y install git
# Install PGP key. Packages are signed by "Phusion Automated Software Signing
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
# Add HTTPS support for APT
RUN apt-get -y install apt-transport-https ca-certificates
# Insert depending on your distribution to passenger.
RUN echo "deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main" >> /etc/apt/sources.list.d/passenger.list
# Update packages.
RUN apt-get -y update
#install web server, extra nginx package and passenger.
RUN apt-get -y install nginx-extras passenger
# restart nginx server
RUN /etc/init.d/nginx restart
EXPOSE 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment