Created
July 10, 2020 15:54
-
-
Save tombruijn/3a85305d34dbd0490455224a6bd3b9b3 to your computer and use it in GitHub Desktop.
CentOS 7.8.2003 + Ruby 2.3.0 Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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