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
-8
View File
@@ -26,17 +26,9 @@ RUN --mount=type=secret,id=GITHUB_TOKEN --mount=type=cache,id=fizzy-devbundle-${
cp -a /devbundle/. "$BUNDLE_PATH"/ && \
bundle clean --force
# Fetch beamer library
FROM registry.37signals.com/basecamp/beamer:vfs AS beamer
# Final stage
FROM base
# Copy beamer into /usr/local because /rails is mounted as a volume and will overwrite anything
# there.
COPY --from=beamer /home/beamer/bin/beamer.so /usr/local/lib/beamer/beamer.so
COPY --from=beamer /usr/local/bin/beamer /usr/local/bin/beamer
# Entrypoint prepares the database
ENTRYPOINT ["/rails/bin/docker-entrypoint"]