From 7c903e72e035c7adede19dd2be9afc94d9100539 Mon Sep 17 00:00:00 2001 From: Kitty Cat Date: Sun, 1 Mar 2026 11:55:43 -0500 Subject: [PATCH] fix(docker): generate locale files before app build The build script runs TypeScript compilation (tsgo) before lingui:compile, causing it to fail when looking for @app/locales/*/messages.mjs files. Running lingui:compile separately before the build fixes this. --- fluxer_server/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fluxer_server/Dockerfile b/fluxer_server/Dockerfile index ee296fd3..4854a74f 100644 --- a/fluxer_server/Dockerfile +++ b/fluxer_server/Dockerfile @@ -123,6 +123,9 @@ COPY fluxer_app/ ./fluxer_app/ # Set FLUXER_CONFIG for rspack to derive API endpoints ENV FLUXER_CONFIG=/usr/src/app/config/config.production.template.json +# Generate locale message files before build (needed for TypeScript compilation) +RUN cd fluxer_app && pnpm lingui:compile + RUN cd fluxer_app && pnpm build FROM node:24-trixie-slim AS production