Skip to content

Commit 43c5f8a

Browse files
authored
🤖 fix: docker build missing bzip2 and using wrong tsc (#873)
## Summary - Add `bzip2` to build dependencies for `lzma-native` to extract its bundled xz tarball - Switch from `tsc` to `tsgo` for consistency with local build (handles bundler module resolution better) ## Test plan - [x] Built Docker image locally with `docker build -t mux-server .` - [ ] CI Docker Smoke Test passes (runs in merge queue) _Generated with `mux`_
1 parent 6b9f32d commit 43c5f8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ COPY package.json bun.lock bunfig.toml ./
2626
COPY 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 && \
5455
RUN ./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)

0 commit comments

Comments
 (0)