You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then when I tried to check that the image builds with
docker build .
I got this error.
23.69 An error occurred while installing psych (5.1.2), and Bundler cannot continue.
23.69
23.69 In Gemfile:
23.69 importmap-rails was resolved to 1.2.3, which depends on
23.69 railties was resolved to 7.1.2, which depends on
23.69 irb was resolved to 1.10.1, which depends on
23.69 rdoc was resolved to 6.6.2, which depends on
23.69 psych
....
....
....
Dockerfile:32
--------------------
31 | COPY --link Gemfile Gemfile.lock ./
32 | >>> RUN bundle install && \
33 | >>> bundle exec bootsnap precompile --gemfile && \
34 | >>> rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git
35 |
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c bundle install && bundle exec bootsnap precompile --gemfile && rm -rf ~/.bundle/ \"${BUNDLE_PATH}\"/ruby/*/cache \"${BUNDLE_PATH}\"/ruby/*/bundler/gems/*/.git" did not complete successfully: exit code: 5
Doing some extra research it turns out that Phych 5.x.x requires libyaml on MacOS and libyaml-dev on ubuntu. ruby/psych#602
Resolution:
Adding libyaml-dev in the DockerFile builds the image successfully.
Thanks
The text was updated successfully, but these errors were encountered:
👋 Thanks for your contribution.
Issue:
I have a new Rails 7.1.2 which after the creation of the app I deleted the default DockerFile that comes with Rails 7.1.x
and run the command.
Then when I tried to check that the image builds with
docker build .
I got this error.
Doing some extra research it turns out that Phych 5.x.x requires libyaml on MacOS and
libyaml-dev
on ubuntu.ruby/psych#602
Resolution:
Adding
libyaml-dev
in the DockerFile builds the image successfully.Thanks
The text was updated successfully, but these errors were encountered: