From e63f6f7ce74d42c712ea175e2997f342076ee5f1 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Thu, 12 Nov 2026 12:27:42 +0100 Subject: [PATCH] Enable YJIT in the container 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. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9bfa83f..09f2490 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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.