Start Puma through Bundler
All checks were successful
Tests / test (push) Successful in 21s
Build and Deploy to Production / test (push) Successful in 22s
Build and Deploy to Production / build (push) Successful in 59s
Build and Deploy to Production / deploy (push) Successful in 40s

The plain puma binstub runs without Bundler, so RubyGems activates
gems as they are required and picks Ruby's default bigdecimal. Under
Ruby 4 that is 4.0.1, which ttfunk 1.8.0 (prawn, invoice PDFs) refuses:
the deploy of 7b34454 crash-looped on Gem::ConflictError. With bundle
exec the lockfile decides (bigdecimal 3.3.1).

Checked on ops with the production env, as a separate container: the
Ruby 4 image boots to Listening and renders the latest invoice to PDF.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-13 04:00:42 +04:00
commit b3080857c4
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -31,4 +31,4 @@ EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD ruby -rnet/http -e 'port = ENV.fetch("PUMA_PORT", "3000"); exit(Net::HTTP.get_response(URI("http://127.0.0.1:#{port}/healthz")).code == "200" ? 0 : 1)'
CMD ["sh", "-c", "exec puma -b tcp://0.0.0.0:${PUMA_PORT} -t ${PUMA_THREADS} --preload"]
CMD ["sh", "-c", "exec bundle exec puma -b tcp://0.0.0.0:${PUMA_PORT} -t ${PUMA_THREADS} --preload"]