File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ COPY package.json bun.lock bunfig.toml ./
2626COPY scripts/postinstall.sh scripts/
2727
2828# Install build tools needed for native modules
29- RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
29+ # bzip2 is required for lzma-native to extract its bundled xz source tarball
30+ RUN apt-get update && apt-get install -y python3 make g++ bzip2 && rm -rf /var/lib/apt/lists/*
3031
3132# Install dependencies (postinstall detects server mode and skips Electron rebuild)
3233# Note: node-pty is in optionalDependencies and will be built for Node.js
@@ -54,7 +55,8 @@ RUN git init && \
5455RUN ./scripts/generate-version.sh
5556
5657# Build main process (server + backend)
57- RUN NODE_ENV=production bun x tsc -p tsconfig.main.json && \
58+ # Use tsgo (native TypeScript) for consistency with local build
59+ RUN NODE_ENV=production bun run node_modules/@typescript/native-preview/bin/tsgo.js -p tsconfig.main.json && \
5860 NODE_ENV=production bun x tsc-alias -p tsconfig.main.json
5961
6062# Build renderer (frontend)
You can’t perform that action at this time.
0 commit comments