Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 980 Bytes

File metadata and controls

24 lines (17 loc) · 980 Bytes

Ubuntu 20.04 + Ruby docker container Build Status

Dockerfile to install Ubuntu 20.04 with any version of Ruby.

Ruby version 3.0.1 will be installed by default.

But you can change the version in dockerfile or use the RUBY_VERSION argument on the command line

docker build -t ubuntu-ruby --build-arg RUBY_VERSION=2.5.0 .

Available on Docker Hub.

The package uses rbenv to install ruby.

Installing Ruby 2.3.8 or lower

To install Ruby version 2.3.8 or below, you need to uncomment in the Dockerfile

RUN echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | tee -a /etc/apt/sources.list
RUN apt-get update && apt-cache policy libssl1.0-dev
RUN apt-get purge -y libssl-dev
RUN apt-get install -y libssl1.0-dev