Skip to content

Instantly share code, notes, and snippets.

@tombruijn
Created July 10, 2020 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tombruijn/3a85305d34dbd0490455224a6bd3b9b3 to your computer and use it in GitHub Desktop.
Save tombruijn/3a85305d34dbd0490455224a6bd3b9b3 to your computer and use it in GitHub Desktop.
CentOS 7.8.2003 + Ruby 2.3.0 Dockerfile
FROM centos:centos7.8.2003
RUN yum install -y git gcc gcc-c++ make openssl-devel bzip2 wget && \
cd ~/ && mkdir tmp && cd tmp && \
wget -O ruby-install-0.7.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz && \
tar -xzvf ruby-install-0.7.0.tar.gz && \
cd ruby-install-0.7.0/ && \
make install
RUN ruby-install ruby 2.3.0
ENV PATH=/opt/rubies/ruby-2.3.0/bin:$PATH
RUN gem update --system && gem install rake bundler
#!/bin/bash
set -eu
docker build -f Dockerfile -t ruby230-centos780-2300:local .
docker run --rm -it -v $(pwd):/gem -w /gem ruby230-centos780-2300:local bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment