2b9590730a
- Added a new `.dockerignore` to keep build context clean by excluding targets, node_modules, logs, IDE files, OS junk, generated outputs, and secrets. - Created a multi-stage Dockerfile that builds Linux `pi_natives.linux-*.node` and `omp-rpc` wheel artifacts in dedicated builder stages. - Published a minimal scratch artifacts stage that only exports the compiled native addon and wheel into `/out/` for downstream image consumption.
64 lines
1.3 KiB
Plaintext
64 lines
1.3 KiB
Plaintext
# Heavy build outputs — must never reach the build context. `target/` alone is
|
|
# >100 GB on a dev machine.
|
|
target/
|
|
node_modules/
|
|
dist/
|
|
runs/
|
|
|
|
# Per-host scratch the pi codebase uses for parallel agents / worktrees.
|
|
.fallow/
|
|
.worktrees/
|
|
.wt/
|
|
.opencode/
|
|
.pi_config/
|
|
.omp/plugins/
|
|
|
|
# VCS, editors, IDEs — irrelevant to the build, churn on every IDE keystroke.
|
|
.git/
|
|
.npm/
|
|
.vscode/
|
|
.zed/
|
|
.idea/
|
|
|
|
# OS + transient noise. Finder rewrites .DS_Store whenever you peek at a
|
|
# folder; profilers drop `CPU.*` blobs at random times. Letting any of these
|
|
# into the build context busts BuildKit's content hash and forces a full
|
|
# native rebuild for no good reason.
|
|
.DS_Store
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
*.tmp
|
|
|
|
# Logs + profiling artifacts.
|
|
*.log
|
|
*.cpuprofile
|
|
*.heapprofile
|
|
*.heapsnapshot
|
|
CPU.*
|
|
|
|
# Build / test side outputs.
|
|
*.tsbuildinfo
|
|
coverage/
|
|
.nyc_output/
|
|
__pycache__/
|
|
compaction-results/
|
|
changes/
|
|
|
|
# Generated files (the in-image build regenerates them).
|
|
packages/coding-agent/src/internal-urls/docs-index.generated.ts
|
|
packages/natives/native/.build/
|
|
packages/natives/native/pi_natives.darwin-*.node
|
|
packages/natives/native/pi_natives.dev.node
|
|
packages/ai/test/.temp-images/
|
|
python/omp-rpc/src/omp_rpc.egg-info/
|
|
|
|
# Scratch files the repo creates ad-hoc.
|
|
syntax.jsonl
|
|
out.jsonl
|
|
out.html
|
|
pi-*.html
|
|
|
|
# Secrets. Should never be in the image regardless.
|
|
.env
|