fix ruby build

This commit is contained in:
Girish Ramakrishnan
2025-03-10 14:20:35 +01:00
parent 6543044765
commit 9a5c321479

View File

@@ -50,11 +50,11 @@ RUN apt update && \
libvorbis0a libvorbisenc2 libvorbisfile3 libvpx9 libx264-164 libx265-199 && \
rm -rf /var/cache/apt /var/lib/apt/lists
# rbenv since we need specific ruby - https://github.com/rbenv/rbenv
# rbenv since we need specific ruby - https://github.com/rbenv/rbenv https://github.com/rbenv/ruby-build
RUN mkdir -p /usr/local/rbenv && curl -LSs "https://github.com/rbenv/rbenv/archive/refs/tags/v1.3.2.tar.gz" | tar -xz -C /usr/local/rbenv --strip-components 1 -f -
ENV PATH /usr/local/rbenv/bin:$PATH
ENV RBENV_ROOT /home/cloudron/rbenv
RUN mkdir -p "$(rbenv root)"/plugins/ruby-build && curl -LSs "https://github.com/rbenv/ruby-build/archive/refs/tags/v20241007.tar.gz" | tar -xz -C "$(rbenv root)"/plugins/ruby-build --strip-components 1 -f -
RUN mkdir -p "$(rbenv root)"/plugins/ruby-build && curl -LSs "https://github.com/rbenv/ruby-build/archive/refs/tags/v20250215.tar.gz" | tar -xz -C "$(rbenv root)"/plugins/ruby-build --strip-components 1 -f -
# install specific ruby version (https://github.com/mastodon/mastodon/blob/main/Dockerfile)
ARG RUBY_VERSION=3.4.2