This commit is contained in:
Christoph Haas 2026-02-09 01:34:55 +01:00
parent 8a13c92028
commit 54d607ce23

View file

@ -5,8 +5,6 @@
ARG RUBY_VERSION=3.2.4
ARG NODE_VERSION=22.16.0
ARG YARN_VERSION=1.22.22
ARG COMMIT_SHA
ARG COMMIT_MESSAGE
# --- Stage 1: Grab Node.js Binaries ---
# We use the official image as a source for pre-compiled binaries
@ -67,9 +65,6 @@ RUN bundle exec bootsnap precompile app/ lib/ && \
# --- Stage 4: Final Production Image ---
FROM base
ARG COMMIT_SHA
ARG COMMIT_MESSAGE
# Copy built artifacts: gems and the app (with precompiled assets)
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
COPY --from=build /rails /rails