Skip to content

Commit a8f2565

Browse files
authored
fix(ruby): add libraries in the Dockerfile (#2333)
1 parent 0750b0c commit a8f2565

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ ENV DOCKER=true
1616
# use bash for subsequent commands
1717
SHELL ["/bin/bash", "--login", "-c"]
1818

19-
# Global
19+
# Global (and librairies for ruby)
2020
RUN apt-get update && apt-get install -y --no-install-recommends \
2121
curl zip unzip git openssh-server \
22+
build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
2223
&& apt-get clean \
2324
&& rm -rf /var/lib/apt/lists/*
2425

@@ -62,8 +63,9 @@ RUN sdk install sbt
6263

6364
# Ruby with RVM, because it's too difficult with the image, dependencies are splattered everywhere
6465
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
6769

6870
# C#
6971
COPY --from=csharp-builder /usr/share/dotnet /usr/share/dotnet

0 commit comments

Comments
 (0)