From d61dd6310b4ac289a978a1e5eabda328365af7bb Mon Sep 17 00:00:00 2001 From: cesnimda Date: Fri, 3 Jul 2026 10:53:06 +0200 Subject: [PATCH] fix(build): give the frontend build 1GB /dev/shm CRA's build runs fork-ts-checker in a forked process whose IPC needs more than Docker's default 64MB /dev/shm; too little segfaults 'npm run build' (RpcIpcMessagePortClosedError / SIGSEGV) with no compile error. Set shm_size on the frontend image build so production deploys don't hit this. (CI runners need the same via their container options.) Co-Authored-By: Claude Fable 5 --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 9672408..aa48c78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,6 +54,9 @@ services: frontend: build: context: ./job-tracker-ui + # fork-ts-checker (CRA's build type-checker) needs more than Docker's default + # 64MB /dev/shm; too little causes a SIGSEGV during `npm run build`. + shm_size: '1gb' args: - REACT_APP_GOOGLE_CLIENT_ID=${AUTH_GOOGLE_CLIENT_ID} # Optional override; default in production is `/api`