Skip to content

Commit 793a8d4

Browse files
committed
Remove node_modules from the final image when using bun
1 parent 20f6edf commit 793a8d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
9696

9797
<% end -%>
9898

99-
<% if using_node? -%>
99+
<% if using_node? || using_bun? -%>
100100
RUN rm -rf node_modules
101101
<% end %>
102102

0 commit comments

Comments
 (0)