make docker file a little better for prod builds

This commit is contained in:
KingKDot
2026-08-01 22:36:17 -05:00
parent fe38187754
commit 743db8350f
3 changed files with 52 additions and 6 deletions
+3
View File
@@ -113,12 +113,15 @@ RUN if [ -f dist-clients/BackstageCapture.x64.dll ]; then \
# Keep production build phases separate so BuildKit reports the exact slow or
# failing phase and can cache each completed phase independently.
RUN bun run build:css
RUN bun run build:web:prod
RUN bun run vendor
RUN MINIFY_CONCURRENCY=4 bun run minify
RUN bun run build:bundle
RUN test "$(wc -l < ./public/index.html)" -lt 20 \
&& test "$(wc -l < ./public/assets/main.js)" -lt 50 \
&& test -s ./public/assets/generated/shared-ui-settings.js \
&& test ! -e ./public/assets/generated/shared-ui-settings.js.map \
&& test -s ./public/assets/tailwind.css \
&& test -d ./public/vendor/fontawesome \
&& test -s ./dist/index.js \