@@ -78,26 +78,17 @@ Painless Ruby Installation (Autoinstaller Ruby)
7878 # Prepare Install Ruby
7979 # -) copy .zshrc to /root
8080 # -) copy .bashrc to /root
81- # -) copy installation scripts to /opt
8281 #-----------------------------------------------------------------------------
82+ RUN git clone https://github.com/zeroc0d3/ruby-installation /opt/ruby_installer
83+
8384 COPY ./rootfs/root/.zshrc /root/.zshrc
8485 COPY ./rootfs/root/.bashrc /root/.bashrc
85- COPY ./rootfs/root/ruby.sh /etc/profile.d/ruby.sh
86- COPY ./rootfs/root/install_ruby.sh /opt/install_ruby.sh
87- COPY ./rootfs/root/reload_shell.sh /opt/reload_shell.sh
88- RUN sudo /bin/sh /opt/install_ruby.sh
89-
90- #-----------------------------------------------------------------------------
91- # Copy package dependencies in Gemfile
92- #-----------------------------------------------------------------------------
93- COPY ./rootfs/root/Gemfile /opt/Gemfile
94- COPY ./rootfs/root/Gemfile.lock /opt/Gemfile.lock
86+ RUN sudo /bin/sh /opt/ruby_installer/install_ruby.sh
9587
9688 #-----------------------------------------------------------------------------
9789 # Install Ruby Packages (rbenv/rvm)
9890 #-----------------------------------------------------------------------------
99- COPY ./rootfs/root/gems.sh /opt/gems.sh
100- RUN sudo /bin/sh /opt/gems.sh
91+ RUN sudo /bin/sh /opt/ruby_installer/gems.sh
10192 ```
10293
10394## Running Installation
0 commit comments