fix(docker): generate locale files before app build
Some checks failed
release server / resolve build metadata (push) Successful in 6s
release server / build fluxer server (push) Failing after 3m19s
release server / create release (push) Has been skipped
release server / release summary (push) Failing after 5s

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.
This commit is contained in:
2026-03-01 11:55:43 -05:00
parent 482b7dee25
commit 7c903e72e0

View File

@@ -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