Rakefile in dockerfile-rails-1.2.3 vs Rakefile in dockerfile-rails-1.2.4
- old
+ new
@@ -34,10 +34,10 @@
cp "#{__dir__}/test/docker-entrypoint", "bin"
IO.write "config/routes.rb",
'Rails.application.routes.draw {get "/up", to: proc {[200, {}, ["ok"]]}}'
sh "docker buildx build . --load -t system:test"
key = IO.read("config/master.key")
- sh "docker run -p 3000:3000 -e RAILS_MASTER_KEY=#{key} system:test"
+ sh "docker run -p 3000:3000 -e RAILS_MASTER_KEY=#{key} --rm system:test"
end
ensure
rm_rf "test/tmp/system_test"
end