From 1f0d720ace71a35d71892324e79ef368bf6c22cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 15 Feb 2026 22:36:49 +0100 Subject: [PATCH] Do not include fallback for case that translations not exist --- Dockerfile | 9 ++------- Dockerfile-frankenphp | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3376f53f..a5fab07d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,13 +39,8 @@ RUN composer dump-autoload # Create required directories for cache warmup RUN mkdir -p var/cache var/log uploads public/media -# Generate real translations via cache warmup (needed for webpack build) -RUN echo "yes" | php bin/console cache:warmup --env=prod 2>&1 || \ - (echo "Warning: Cache warmup failed with exit code $?, but continuing..." && \ - echo "Falling back to stub translations..." && \ - mkdir -p var/translations && \ - echo 'export const messages = {};' > var/translations/index.js && \ - echo 'export const localeFallbacks = {};' >> var/translations/index.js) +# Dump translations, which we need for cache warmup +RUN php bin/console cache:warmup -n --env=prod 2>&1 # Copy package files and install node dependencies COPY package.json yarn.lock ./ diff --git a/Dockerfile-frankenphp b/Dockerfile-frankenphp index 5f6a4b02..8b6fd95d 100644 --- a/Dockerfile-frankenphp +++ b/Dockerfile-frankenphp @@ -37,13 +37,8 @@ RUN composer dump-autoload # Create required directories for cache warmup RUN mkdir -p var/cache var/log uploads public/media -# Generate real translations via cache warmup (needed for webpack build) -RUN echo "yes" | php bin/console cache:warmup --env=prod 2>&1 || \ - (echo "Warning: Cache warmup failed with exit code $?, but continuing..." && \ - echo "Falling back to stub translations..." && \ - mkdir -p var/translations && \ - echo 'export const messages = {};' > var/translations/index.js && \ - echo 'export const localeFallbacks = {};' >> var/translations/index.js) +# Dump translations, which we need for cache warmup +RUN php bin/console cache:warmup -n --env=prod 2>&1 # Copy package files and install node dependencies COPY package.json yarn.lock ./