Skip to content

Instantly share code, notes, and snippets.

@billywhizz
Last active February 21, 2026 14:32
Show Gist options
  • Select an option

  • Save billywhizz/7f3b2fe0b7df56ffb0b2d1ce412e66b0 to your computer and use it in GitHub Desktop.

Select an option

Save billywhizz/7f3b2fe0b7df56ffb0b2d1ce412e66b0 to your computer and use it in GitHub Desktop.
small node.js SEA build
  • built on Ubuntu 22.04 with llvm/clang 22
git clone --depth 1 --single-branch git@github.com:nodejs/node.git
cd node
../build.sh
cd ..
node/out/Release/node --build-sea sea-config.json
docker build -t sea .
docker ps -a
IMAGE                                       ID             DISK USAGE   CONTENT SIZE   EXTRA
sea:latest                                  cd98cc1fd630       64.4MB             0B        
docker run -it --rm sea:latest 
hello world
#!/usr/bin/env bash
export CC="ccache clang"
export CXX="ccache clang++"
./configure --without-intl --without-sqlite --without-npm --dest-cpu x64 --without-amaro --without-node-options --without-inspector --experimental-enable-pointer-compression --without-report --without-siphash --fully-static
make -j 6
FROM scratch
ADD sea /sea
CMD ["/sea"]
{
"main": "sea.mjs",
"output": "sea",
"disableExperimentalSEAWarning": true,
"useSnapshot": false,
"useCodeCache": true,
"mainFormat": "commonjs"
}
console.log("hello world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment