Merge branch 'master' of git.clinicalfuture.com:arvados
[arvados.git] / docker / base / Dockerfile
1 # Arvados base image (wheezy+rvm+Arvados source) in Docker
2
3 # Based on Debian Wheezy
4 FROM arvados/debian:wheezy
5 MAINTAINER Tim Pierce <twp@clinicalfuture.com>
6
7 # Install prerequisite packages for Arvados
8 #   * git, curl, rvm
9 #   * Arvados source code
10 #
11 RUN apt-get update ;\
12     apt-get -q -y install -q -y apt-utils git curl locales ;\
13     /bin/sed -ri 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen ;\
14     /usr/sbin/locale-gen ;\
15     curl -L https://get.rvm.io | bash -s stable --ruby=2.0.0
16
17 # Set up RVM environment. These are just the env variables created by
18 # /usr/local/rvm/scripts/rvm, which can't be run from a non-login shell.
19 # TODO(twp): figure out a less awful solution.
20 ENV GEM_HOME /usr/local/rvm/gems/ruby-2.0.0-p247
21 ENV GEM_PATH /usr/local/rvm/gems/ruby-2.0.0-p247:/usr/local/rvm/gems/ruby-2.0.0-p247@global
22 ENV PATH /usr/local/rvm/gems/ruby-2.0.0-p247/bin:/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
23
24 ENV DEBIAN_FRONTEND noninteractive