Skip to content

Instantly share code, notes, and snippets.

@masoo
Last active August 6, 2017 07:25
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 masoo/69a9ce8c0ed816084f7f to your computer and use it in GitHub Desktop.
Save masoo/69a9ce8c0ed816084f7f to your computer and use it in GitHub Desktop.
Ubuntu 17.04 -> rbenv -> ruby 2.4.1 をインストールした Dockerfile
FROM masoo/ubuntu-rbenv:3.0
MAINTAINER FUNABARA Masao
RUN \
cd ~/.rbenv && \
git pull origin master && \
cd ~/.rbenv/plugins/ruby-build && \
git pull origin master && \
cd ~/.rbenv/plugins/rbenv-gem-rehash && \
git pull origin master
RUN \
zsh -c "source ~/.zshrc && rbenv install 2.4.1 && rbenv global 2.4.1"
CMD ["/usr/bin/zsh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment