We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e642926 commit cf5e38bCopy full SHA for cf5e38b
railties/lib/rails/generators/rails/app/templates/Dockerfile.tt
@@ -52,7 +52,8 @@ RUN curl -fsSL https://bun.sh/install | bash -s -- "bun-v${BUN_VERSION}"
52
53
<% end -%>
54
# Install application gems
55
-COPY Gemfile Gemfile.lock ./
+COPY Gemfile Gemfile.lock vendor ./
56
+
57
RUN bundle install && \
58
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git<% if depend_on_bootsnap? -%> && \
59
bundle exec bootsnap precompile --gemfile<% end %>
@@ -116,4 +117,4 @@ CMD ["./bin/rails", "server"]
116
117
# Start server via Thruster by default, this can be overwritten at runtime
118
EXPOSE 80
119
CMD ["./bin/thrust", "./bin/rails", "server"]
-<% end -%>
120
+<% end -%>
0 commit comments