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.
This commit is contained in:
@@ -123,6 +123,9 @@ COPY fluxer_app/ ./fluxer_app/
|
|||||||
# Set FLUXER_CONFIG for rspack to derive API endpoints
|
# Set FLUXER_CONFIG for rspack to derive API endpoints
|
||||||
ENV FLUXER_CONFIG=/usr/src/app/config/config.production.template.json
|
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
|
RUN cd fluxer_app && pnpm build
|
||||||
|
|
||||||
FROM node:24-trixie-slim AS production
|
FROM node:24-trixie-slim AS production
|
||||||
|
|||||||
Reference in New Issue
Block a user