File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ RUN apt-get update -qq && apt-get install -y nodejs && npm install -g yarn
1919WORKDIR /rails
2020
2121# Ensure gems are installed on a persistent volume and available as bins
22+ # Make the folder world writable to let the default user install the gems
23+ RUN mkdir /bundle && chmod -R ugo+rwt /bundle
2224VOLUME /bundle
23- RUN bundle config set --global path '/bundle'
25+ ENV BUNDLE_PATH= '/bundle'
2426ENV PATH="/bundle/ruby/$RUBY_VERSION/bin:${PATH}"
2527
2628# Install Rails
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Install [Docker](https://www.docker.com/products/docker-desktop/) (and [WSL](htt
66
77``` bash
88docker volume create ruby-bundle-cache
9- alias docked=' docker run --rm -it -v ${PWD}:/rails -v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/rails/cli'
9+ alias docked=' docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) - v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/rails/cli'
1010```
1111
1212Then create your Rails app:
You can’t perform that action at this time.
0 commit comments