From 9d3c1ebaa688bcc95c504a71c1edf26cdc0a7556 Mon Sep 17 00:00:00 2001 From: Florent Destremau Date: Sun, 26 Oct 2025 18:24:35 +0100 Subject: [PATCH] Added importmap compile step in production build if needed This is usefull for plug-and-play production mode for asset-mapper --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 52ac1f5fd..a68d264db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,4 +92,7 @@ RUN set -eux; \ composer dump-autoload --classmap-authoritative --no-dev; \ composer dump-env prod; \ composer run-script --no-dev post-install-cmd; \ + if [ -f importmap.php ]; then \ + php bin/console asset-map:compile; \ + fi; \ chmod +x bin/console; sync;