From ea8b792332e363f92081460a0d7ceb0485760cba Mon Sep 17 00:00:00 2001 From: Thomas Kosiewski Date: Wed, 3 Dec 2025 12:38:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20docker=20build=20missing?= =?UTF-8?q?=20bzip2=20and=20using=20wrong=20tsc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add bzip2 to build dependencies for lzma-native extraction - Switch from tsc to tsgo for consistency with local build --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eeb113bda..8bff9dcbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,8 @@ COPY package.json bun.lock bunfig.toml ./ COPY scripts/postinstall.sh scripts/ # Install build tools needed for native modules -RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/* +# bzip2 is required for lzma-native to extract its bundled xz source tarball +RUN apt-get update && apt-get install -y python3 make g++ bzip2 && rm -rf /var/lib/apt/lists/* # Install dependencies (postinstall detects server mode and skips Electron rebuild) # Note: node-pty is in optionalDependencies and will be built for Node.js @@ -54,7 +55,8 @@ RUN git init && \ RUN ./scripts/generate-version.sh # Build main process (server + backend) -RUN NODE_ENV=production bun x tsc -p tsconfig.main.json && \ +# Use tsgo (native TypeScript) for consistency with local build +RUN NODE_ENV=production bun run node_modules/@typescript/native-preview/bin/tsgo.js -p tsconfig.main.json && \ NODE_ENV=production bun x tsc-alias -p tsconfig.main.json # Build renderer (frontend)