Skip to content

Commit 507b76d

Browse files
committed
Changes for bundler 4
Copy across the .ruby-version file so bundler knows what version to use. Also --path is no longer supported so remove it.
1 parent 341eab5 commit 507b76d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ RUN apt-get update \
2222
build-essential libpq-dev libxml2-dev libxslt1-dev git libyaml-dev \
2323
firefox-esr \
2424
&& rm -rf /var/lib/apt/lists/* /var/lib/apt/archives/*.deb
25-
COPY Gemfile Gemfile.lock /app/
25+
COPY Gemfile Gemfile.lock .ruby-version /app/
26+
RUN bundle config set bin '/usr/local/bundle/bin'
2627
RUN bundle install --jobs 4 \
27-
&& bundle binstubs --all --path /usr/local/bundle/bin \
28+
&& bundle binstubs --all \
2829
&& bundle binstubs bundler --force
2930

3031
# Dev container image

0 commit comments

Comments
 (0)