In my small Dockerfile:
FROM ubuntu:24.04SHELL ["/bin/bash", "-c"]RUN apt updateRUN apt update && apt install -y gnupg2 curl software-properties-common build-essential libssl-dev zlib1g-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf automake libtool bison libffi-devRUN gpg2 --keyserver hkp://keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDBRUN \curl -sSL https://get.rvm.io -o rvm.sh# RUN cat rvm.sh | bash -s stable --rails -- installs ruby with rvmRUN bash rvm.sh stableRUN bash -l -c "rvm install 3.0.0"- I'm trying to install Ruby using RVM and I'm getting this error. It suggests to look at .log files but i dont seem to get any valuable info from that.
- RVM is succesfully downloaded and installed and when i run container I easily install Ruby, but from Dockerfile I'm struggling.
- I also tried putting source
source ~/.rvm/scripts/rvmwhich didn't work so i did. ~/.rvm/scripts/rvmwhich worked but still couldnt install ruby from Dockerfile.
ruby with rvm 8 | RUN bash rvm.sh stable 9 | >>> RUN bash -l -c "rvm install 3.0.0 --disable-binary --trace" 10 |--------------------ERROR: failed to solve: process "/bin/bash -c bash -l -c \"rvm install 3.0.0 --disable-binary --trace\"" did not complete successfully: exit code: 2