RexSystem1 voteoriginally by @mgabor3141 on GitHub OP
1: Dockerfile build fixes
The Dockerfile on refactor needs several fixes to produce a working build:
Missing workspace package.json COPYs — 16 packages are missing from the deps stage, causing pnpm install to fail:
Missing admin CSS build step: Add after the marketing CSS build:
RUN pnpm --filter admin build:css
tsgo --noEmit fails at build time because lingui locale .mjs files don't exist yet. Fix: remove tsgo --noEmit && from fluxer_app/package.json build script.
FLUXER_CONFIG not available in app-build stage: rspack reads config.json to derive endpoint URLs. Inject a minimal build-time config via build arg:
FROM deps AS app-build
ARG FLUXER_BUILD_CONFIG="{}"RUN echo "$FLUXER_BUILD_CONFIG" > /tmp/fluxer-build-config.json
ENV FLUXER_CONFIG=/tmp/fluxer-build-config.json
Thread
Comment by @mgabor3141
1: Dockerfile build fixes
The Dockerfile onrefactorneeds several fixes to produce a working build: Missing workspace package.json COPYs — 16 packages are missing from the deps stage, causingpnpm installto fail:.dockerignoreexcludes build-time files:
No wasm32 target: The apt-installed**/buildexcludesfluxer_app/scripts/build/(rspack config). Fix: add!fluxer_app/scripts/build/fluxer_app/src/data/emojis.jsonis explicitly ignored but needed at build time. Fix: remove that linerustcdoesn't includewasm32-unknown-unknown, sowasm-packfails. Fix: install viarustupinstead:ENTRYPOINT ["pnpm", "start"]targets the root workspace which has nostartscript. Fix:tsgo --noEmitfails at build time because lingui locale.mjsfiles don't exist yet. Fix: removetsgo --noEmit &&fromfluxer_app/package.jsonbuild script.FLUXER_CONFIGnot available in app-build stage: rspack readsconfig.jsonto derive endpoint URLs. Inject a minimal build-time config via build arg: