-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 974 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:latest
RUN apt-get update -qq && apt-get install -y curl
# install rvm
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
RUN \curl -L https://get.rvm.io | bash -s stable --ruby
# configure rvm
RUN /bin/bash -l -c "rvm get stable --autolibs=enable" \
&& /bin/bash -l -c "rvm install ruby 2.3.0"
#install nodejs
RUN apt-get install -y nodejs
#update gem
RUN /bin/bash -l -c "rvm --default use ruby-2.3.0" \
&& /bin/bash -l -c "gem update --system" \
&& /bin/bash -l -c "rvm gemset use global" \
&& /bin/bash -l -c "echo 'gem: --no-document' >> /root/.gemrc" \
&& /bin/bash -l -c "gem update"
#install bundler
RUN /bin/bash -l -c "gem install bundler"
#install bundler
RUN apt-get install -y libgmp-dev && /bin/bash -l -c "gem install nokogiri"
#install Rails
RUN /bin/bash -l -c "rvm use [email protected] --create" \
&& /bin/bash -l -c "gem install rails"
#RUN /bin/bash -l -c ""