Match .ruby-version to installed Ruby version

This commit is contained in:
thespad 2024-11-19 13:57:25 +00:00
parent d53646395b
commit c98c0a31bd
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,7 @@ RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
git \
grep \
libffi-dev \
mariadb-dev \
nodejs \
@ -55,7 +56,8 @@ RUN \
corepack enable && \
yarn install && \
gem install foreman && \
sed -i 's/\d.\d.\d/3.3.3/' .ruby-version && \
RUBY=$(apk list ruby | grep -oP '.*-\K(\d\.\d\.\d)') && \
sed -i "s/\d.\d.\d/${RUBY}/" .ruby-version && \
bundle config set --local deployment 'true' && \
bundle config set --local without 'development test' && \
bundle config force_ruby_platform true && \

View File

@ -30,6 +30,7 @@ RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
git \
grep \
libffi-dev \
mariadb-dev \
nodejs \
@ -55,7 +56,8 @@ RUN \
corepack enable && \
yarn install && \
gem install foreman && \
sed -i 's/\d.\d.\d/3.3.3/' .ruby-version && \
RUBY=$(apk list ruby | grep -oP '.*-\K(\d\.\d\.\d)') && \
sed -i "s/\d.\d.\d/${RUBY}/" .ruby-version && \
bundle config set --local deployment 'true' && \
bundle config set --local without 'development test' && \
bundle config force_ruby_platform true && \