Last active
August 29, 2015 14:17
-
-
Save kalelc/2237e6c6a9a43a762c3a to your computer and use it in GitHub Desktop.
Passenger, nginx and rails
This file contains hidden or 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
# 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