Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down