This commit is contained in:
parent
4b9c0c72e5
commit
8a00785bfc
1 changed files with 3 additions and 3 deletions
|
|
@ -7,9 +7,6 @@
|
|||
|
||||
# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
|
||||
|
||||
ARG COMMIT_SHA
|
||||
ARG BUILD_DATE
|
||||
|
||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
|
||||
ARG RUBY_VERSION=3.2.4
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
||||
|
|
@ -71,6 +68,9 @@ RUN rm -rf node_modules
|
|||
# Final stage for app image
|
||||
FROM base
|
||||
|
||||
ARG COMMIT_SHA
|
||||
ARG BUILD_DATE
|
||||
|
||||
# Copy built artifacts: gems, application
|
||||
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
|
||||
COPY --from=build /rails /rails
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue