Vite build fails because Git is missing in the build container

Error recorded 17 times in PanelAlpha Engine deploys on Nextjs, Php, Vite. The deploy log below is the recorded failure output.

Seen17 times · 4 variants
WhereNextjs, Php, Vite

Why it happens

The Vite build runs a Git command to read the current commit: git rev-parse --short HEAD. The Node build image does not include the git executable, so Vite exits with status 127 before producing the app. The package-lock warning is unrelated; this project uses pnpm.

What the log looks like

Deploy log
$ vite build/bin/sh: 1: git: not founderror during build:Error: Command failed: git rev-parse --short HEAD/bin/sh: 1: git: not found[ELIFECYCLE] Command failed with exit code 1.

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation