Last active
May 1, 2017 09:43
-
-
Save minimum2scp/aca6ef82a65f313252fce2a7f7255369 to your computer and use it in GitHub Desktop.
sidでruby 2.3系、2.2系、2.1系をlibssl1.0-devを使ってビルドする
This file contains 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 debian:sid | |
ARG ruby_version=2.3.4 | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends \ | |
build-essential autoconf bison ca-certificates git-core libgdbm-dev libncursesw5-dev libncurses5-dev libreadline-dev zlib1g-dev libssl1.0-dev libffi-dev libyaml-dev libgmp-dev \ | |
rbenv ruby-build | |
RUN if [ ! -f /usr/share/ruby-build/${ruby_version} ]; then \ | |
curl -sSL -o /usr/share/ruby-build/${ruby_version} https://raw.githubusercontent.com/rbenv/ruby-build/master/share/ruby-build/${ruby_version}; \ | |
fi | |
RUN rbenv install ${ruby_version} | |
RUN rbenv global ${ruby_version} | |
## check ruby version, openssl version | |
RUN rbenv exec ruby --version | |
RUN rbenv exec gem env | |
RUN rbenv exec ruby -ropenssl -ve 'puts OpenSSL::OPENSSL_VERSION' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment