Created
July 8, 2014 23:48
-
-
Save technicool/f8543fdf0d0091629b39 to your computer and use it in GitHub Desktop.
Generic Ruby dockerfile
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:14.04 | |
MAINTAINER Marshall Anschutz <[email protected]> | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
# Install tools & libs to compile everything | |
RUN apt-get update && apt-get install -y build-essential libssl-dev libreadline-dev wget && apt-get clean | |
## Install imagemagick | |
#RUN apt-get install -y imagemagick libmagick++-dev libmagic-dev && apt-get clean | |
## Install nodejs | |
#RUN apt-get install -y python-software-properties | |
#RUN add-apt-repository ppa:chris-lea/node.js | |
#RUN apt-get update | |
#RUN apt-get install -y nodejs && apt-get clean | |
# Install ruby-build | |
RUN apt-get install -y git-core && apt-get clean | |
RUN git clone https://github.com/sstephenson/ruby-build.git && cd ruby-build && ./install.sh | |
# Install ruby 2.1.2 | |
ENV CONFIGURE_OPTS --disable-install-rdoc | |
RUN ruby-build 2.1.2 /usr/local | |
RUN gem install bundler | |
# Clean up downloaded packages | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# Install the application | |
# TODO: add your code here. | |
#ADD Gemfile /Gemfile | |
#ADD Gemfile.lock /Gemfile.lock | |
#run bundle install | |
#ADD thecode.tar.gz /tmp/thecode.tar.gz | |
#run mkdir -p /app && cd /app && tar -zxf /tmp/thecode.tar.gz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment