Skip to content

Commit

Permalink
fix(ruby): add libraries in the Dockerfile (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Dec 4, 2023
1 parent 0750b0c commit a8f2565
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ ENV DOCKER=true
# use bash for subsequent commands
SHELL ["/bin/bash", "--login", "-c"]

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

Expand Down Expand Up @@ -62,8 +63,9 @@ RUN sdk install sbt

# Ruby with RVM, because it's too difficult with the image, dependencies are splattered everywhere
ARG RUBY_VERSION
RUN wget -O ruby.tar.gz https://github.com/postmodern/ruby-install/releases/download/v0.9.2/ruby-install-0.9.2.tar.gz \
&& tar -xzvf ruby.tar.gz && cd ruby && make install && ruby-install ruby ${RUBY_VERSION} && gem install bundler
RUN echo "export PATH=$PATH:/opt/rubies/ruby-${RUBY_VERSION}/bin" >> ~/.profile && source ~/.profile
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 \
&& tar -xzvf ruby.tar.gz && cd ruby-install-0.9.2 && make install && ruby-install ruby ${RUBY_VERSION} && gem install bundler

# C#
COPY --from=csharp-builder /usr/share/dotnet /usr/share/dotnet
Expand Down

0 comments on commit a8f2565

Please sign in to comment.