Last active
January 31, 2023 12:24
-
-
Save hopewise/1283e856e21c6a50423ad7025bf3e6eb to your computer and use it in GitHub Desktop.
MySQL 5.7, asdf, Ruby 2.7.7
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 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