From f9517602bc7320e7265ae704efd1f982c07968ad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 16:12:40 +0000 Subject: [PATCH] Build real translations in node-builder stage via cache warmup Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> --- Dockerfile | 15 +++++++++------ Dockerfile-frankenphp | 15 +++++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index f245a85d..07ea8a6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,12 +35,15 @@ COPY webpack.config.js ./ # Generate autoloader RUN composer dump-autoload -# Create stub translations file for webpack build (real translations will be generated in final image) -RUN mkdir -p var/translations -COPY < var/translations/index.js && \ + echo 'export const localeFallbacks = {};' >> var/translations/index.js) # Copy package files and install node dependencies COPY package.json yarn.lock ./ diff --git a/Dockerfile-frankenphp b/Dockerfile-frankenphp index 55a92b2c..a02e69e8 100644 --- a/Dockerfile-frankenphp +++ b/Dockerfile-frankenphp @@ -33,12 +33,15 @@ COPY webpack.config.js ./ # Generate autoloader RUN composer dump-autoload -# Create stub translations file for webpack build (real translations will be generated in final image) -RUN mkdir -p var/translations -COPY < var/translations/index.js && \ + echo 'export const localeFallbacks = {};' >> var/translations/index.js) # Copy package files and install node dependencies COPY package.json yarn.lock ./