Skip to content

Instantly share code, notes, and snippets.

@hopewise
Last active January 31, 2023 12:24
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 hopewise/1283e856e21c6a50423ad7025bf3e6eb to your computer and use it in GitHub Desktop.
Save hopewise/1283e856e21c6a50423ad7025bf3e6eb to your computer and use it in GitHub Desktop.
MySQL 5.7, asdf, Ruby 2.7.7
FROM mysql:5.7.37-debian
#install ruby
RUN apt update
RUN apt install -y git
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.1
RUN . "/root/.asdf/asdf.sh"
RUN asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
RUN apt install -y wget
RUN apt-get -y install make
RUN apt-get -y install gcc
RUN apt-get -y install libz-dev
RUN apt-get -y install bzip2
RUN asdf install ruby 2.7.7
RUN apt-get install rubygems build-essential
RUN asdf reshim ruby
RUN asdf global ruby 2.7.7
RUN apt install -y default-libmysqlclient-dev
RUN gem install bundler -v 2.1.4
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment