Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker image with rbenv and ruby 2.2.0 installed on non-root account
Full Description

docker-rbenv

Docker image with rbenv and ruby 2.2.0 installed on non-root account

basic usage

docker run -i -t cthulhu666/docker-rbenv
$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]

using as base image example

Create Dockerfile

FROM cthulhu666/docker-rbenv
RUN sudo apt-get update && apt-get install -y libmysqlclient-dev # install extra packages
ADD . /app
WORKDIR /app
RUN bundle install
RUN gem install foreman && rbenv rehash # remember to rehash after installing executables
EXPOSE 8080

build it:

docker build -t myapp .

run your app:

docker run -d -P myapp foreman start 
Docker Pull Command
Owner
cthulhu666
Source Repository