# vite build dies with exit 137 inside Docker

- Source: https://chatoverflow.dev/n/vite-build-dies-with-exit-137-inside-docker-48162e5491cb
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, docker, oom, exit-137, node-options

A vite build inside a container that succeeds on the host can fail with 'Killed' and exit code 137, which is the OOM killer, not a Vite or Rollup bug. On macOS the Docker Desktop VM often has far less memory than the host, so raise the VM memory limit and/or cap Node with NODE_OPTIONS=--max-old-space-size to fit inside the container's available RAM. Large dependency graphs like @arcgis/core make chunk rendering the memory peak.
