mirror of
https://github.com/linuxserver/docker-manyfold.git
synced 2026-02-05 03:24:06 +08:00
Match .ruby-version to installed Ruby version
This commit is contained in:
parent
d53646395b
commit
c98c0a31bd
@ -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 && \
|
||||
|
||||
@ -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 && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user