Created
August 13, 2013 16:53
-
-
Save brynary/6223196 to your computer and use it in GitHub Desktop.
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 ubuntu | |
MAINTAINER Code Climate <[email protected]> | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y curl libssl-dev libssl0.9.8 autoconf build-essential | |
RUN mkdir -p /app/vendor/ruby-1.9.3 && cd /app/vendor/ruby-1.9.3 && curl "https://s3.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3.tgz" -s -o - | tar zxf - | |
RUN mkdir -p /app/vendor/bundle/ruby/1.9.1 && cd /app/vendor/bundle/ruby/1.9.1 && curl "https://s3.amazonaws.com/heroku-buildpack-ruby/bundler-1.3.2.tgz" -s -o - | tar zxf - | |
ENV PATH /app/bin:/app/vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin | |
ENV GEM_PATH /app/vendor/bundle/ruby/1.9.1 | |
ENV GEM_HOME /app/vendor/bundle/ruby/1.9.1 | |
RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
ADD . /app | |
RUN cd /app && PATH=/app/bin:/app/vendor/bundle/ruby/1.9.1/bin:/app/vendor/ruby-1.9.3/bin:/usr/local/bin:/usr/bin:/bin GEM_PATH=/app/vendor/bundle/ruby/1.9.1 GEM_HOME=/app/vendor/bundle/ruby/1.9.1 bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment | |
RUN cd /app && mkdir -p bin && for f in vendor/ruby-1.9.3/bin/*; do ln -s ../$f bin; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment