Skip to content

Instantly share code, notes, and snippets.

@deepak
Created July 5, 2013 06:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepak/5932517 to your computer and use it in GitHub Desktop.
Save deepak/5932517 to your computer and use it in GitHub Desktop.
Dockerfile to install ruby using brightbox deb
# DOCKER-VERSION 0.4.8
FROM ubuntu:12.04
MAINTAINER Deepak Kannan "deepak@codemancers.com"
RUN apt-get -y install python-software-properties
RUN apt-add-repository -y ppa:brightbox/ruby-ng-experimental
RUN apt-get -y update
RUN apt-get -y install ruby2.0 ruby2.0-dev
@drnic
Copy link

drnic commented Feb 17, 2014

I get the following error...

...
Setting up python-software-properties (0.92.17.3) ...
 ---> dc03de72bee7
Step 2 : RUN apt-add-repository -y ppa:brightbox/ruby-ng-experimental
 ---> Running in 443e8b5f790e

2014/02/17 13:32:27 build: The command [/bin/sh -c apt-add-repository -y ppa:brightbox/ruby-ng-experimental] returned a non-zero code: 127

Ideas?

@crofty
Copy link

crofty commented Aug 31, 2014

RUN apt-get -y install python-software-properties
RUN apt-get -y install software-properties-common
RUN add-apt-repository -y ppa:brightbox/ruby-ng-experimental
RUN apt-get -y update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment