Skip to content

Commit d89fb56

Browse files
authored
Use existing bundle path that already declared (rails#50615)
1 parent 27fa049 commit d89fb56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -87,7 +87,7 @@ RUN apt-get update -qq && \
8787

8888
<% end -%>
8989
# Copy built artifacts: gems, application
90-
COPY --from=build /usr/local/bundle /usr/local/bundle
90+
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
9191
COPY --from=build /rails /rails
9292

9393
# Run and own only the runtime files as a non-root user for security

railties/test/fixtures/Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN apt-get update -qq && \
5050
rm -rf /var/lib/apt/lists /var/cache/apt/archives
5151

5252
# Copy built artifacts: gems, application
53-
COPY --from=build /usr/local/bundle /usr/local/bundle
53+
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
5454
COPY --from=build /rails /rails
5555

5656
# Run and own only the runtime files as a non-root user for security

0 commit comments

Comments
 (0)