We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f48c9f2 + 4f19d3c commit 2fb907dCopy full SHA for 2fb907d
lib/generators/dockerfile_generator.rb
@@ -410,10 +410,12 @@ def generate_app
410
missing = Set.new(base_packages + build_packages) -
411
Set.new(dockerfile.scan(/[-\w]+/))
412
413
- # https://github.com/docker-library/ruby/pull/497
414
- # https://github.com/rails/rails/pull/54237
415
- missing.delete("libyaml-dev")
416
- missing.delete("yaml-dev")
+ if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new("3.4.1")
+ # https://github.com/docker-library/ruby/pull/497
+ # https://github.com/rails/rails/pull/54237
+ missing.delete("libyaml-dev")
417
+ missing.delete("yaml-dev")
418
+ end
419
420
unless missing.empty?
421
message = "The following packages are missing from the Dockerfile: #{missing.to_a.join(", ")}"
0 commit comments