Complete beamer gem adoption

- stop importing beamer during Dockerfile builds
- add a "bin/beamer" gemstub
- invoke `bin/beamer` explicitly
- drop the beamer initializer
This commit is contained in:
Mike Dalessio
2025-10-23 14:48:08 -07:00
parent 97b17b9bcc
commit c87c2f0960
6 changed files with 19 additions and 43 deletions
-7
View File
@@ -44,11 +44,6 @@ RUN bundle exec bootsnap precompile app/ lib/
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
# Fetch beamer library
FROM registry.37signals.com/basecamp/beamer:vfs AS beamer
# Final stage for app image
FROM base
@@ -60,8 +55,6 @@ RUN apt-get update -qq && \
# Copy built artifacts: gems, application
COPY --from=build /usr/local/bundle /usr/local/bundle
COPY --from=build /rails /rails
COPY --from=beamer /home/beamer/bin/beamer.so /rails/bin/lib/beamer.so
COPY --from=beamer /usr/local/bin/beamer /rails/bin/beamer
# Run and own only the runtime files as a non-root user for security
RUN useradd rails --create-home --shell /bin/bash && \