@@ -78,26 +78,17 @@ Painless Ruby Installation (Autoinstaller Ruby)
78
78
# Prepare Install Ruby
79
79
# -) copy .zshrc to /root
80
80
# -) copy .bashrc to /root
81
- # -) copy installation scripts to /opt
82
81
#-----------------------------------------------------------------------------
82
+ RUN git clone https://github.com/zeroc0d3/ruby-installation /opt/ruby_installer
83
+
83
84
COPY ./rootfs/root/.zshrc /root/.zshrc
84
85
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
95
87
96
88
#-----------------------------------------------------------------------------
97
89
# Install Ruby Packages (rbenv/rvm)
98
90
#-----------------------------------------------------------------------------
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
101
92
```
102
93
103
94
## Running Installation
0 commit comments