File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ ENV DOCKER=true
16
16
# use bash for subsequent commands
17
17
SHELL ["/bin/bash" , "--login" , "-c" ]
18
18
19
- # Global
19
+ # Global (and librairies for ruby)
20
20
RUN apt-get update && apt-get install -y --no-install-recommends \
21
21
curl zip unzip git openssh-server \
22
+ build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
22
23
&& apt-get clean \
23
24
&& rm -rf /var/lib/apt/lists/*
24
25
@@ -62,8 +63,9 @@ RUN sdk install sbt
62
63
63
64
# Ruby with RVM, because it's too difficult with the image, dependencies are splattered everywhere
64
65
ARG RUBY_VERSION
65
- RUN wget -O ruby.tar.gz https://github.com/postmodern/ruby-install/releases/download/v0.9.2/ruby-install-0.9.2.tar.gz \
66
- && tar -xzvf ruby.tar.gz && cd ruby && make install && ruby-install ruby ${RUBY_VERSION} && gem install bundler
66
+ RUN echo "export PATH=$PATH:/opt/rubies/ruby-${RUBY_VERSION}/bin" >> ~/.profile && source ~/.profile
67
+ RUN curl -L -o ruby.tar.gz https://github.com/postmodern/ruby-install/releases/download/v0.9.2/ruby-install-0.9.2.tar.gz \
68
+ && tar -xzvf ruby.tar.gz && cd ruby-install-0.9.2 && make install && ruby-install ruby ${RUBY_VERSION} && gem install bundler
67
69
68
70
# C#
69
71
COPY --from=csharp-builder /usr/share/dotnet /usr/share/dotnet
You can’t perform that action at this time.
0 commit comments