Enable YJIT in the container
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 1m2s

The official Ruby image ships YJIT but leaves it off. Set via ENV so the
puma server and rake jobs run through podman compose exec both get it.
This commit is contained in:
randy committed 2026-11-12 12:27:42 +01:00
1 parent 3f973a26d7
commit e63f6f7ce7
1 file changed
+5
+5
View File
@@ -3,6 +3,11 @@
# bookworm-backports doesn't carry a newer one either, only trixie's does.
FROM ruby:4.0.9-slim-trixie
# YJIT is compiled into the official image but off unless asked for. Set
# here rather than as a puma flag so `podman compose exec ... rake` jobs
# (places:index, gpx backfills) get it too.
ENV RUBY_YJIT_ENABLE=1
# build-essential: puma has a native (C) extension; harmless if the
# platform-specific gem in Gemfile.lock already has a precompiled binary
# matching this base image, but keeps the build working if it doesn't.