Skip to content

Commit 9603518

Browse files
committed
4.0: Set bundle path via config before installing.
With Bundler >= 4.0, the CLI no longer accepts config options as part of CLI. Set the path to a custom directory in a local directory with `bundle config set --local path <path>` where applicable.
1 parent bb81256 commit 9603518

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

4.0/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ FROM ubi10/ruby-40
114114
115115
USER 0
116116
ADD app-src ./
117-
RUN bundle install --path ./bundle
117+
RUN bundle config set --local path ./bundle && \
118+
bundle install
118119
119120
CMD bundle exec "rackup -P /tmp/rack.pid --host 0.0.0.0 --port 8080"
120121
```

examples/from-dockerfile/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM ubi8/ruby-33
22

33
ADD --chown=default:root app-src ./
44

5-
RUN bundle install --path ./bundle
5+
RUN bundle config set --local path ./bundle && \
6+
bundle install
67

78
CMD exec bundle exec "rackup -P /tmp/rack.pid --host 0.0.0.0 --port 8080"

0 commit comments

Comments
 (0)