#9102: Remove UI build for Discord-onlyUpdate Dockerfile
docker
stale
Cluster:
Docker Enhancements and Fixes
Remove UI build for Discord-only
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the `Dockerfile` to remove the explicit `pnpm ui:build` layer, leaving the container build to run only `OPENCLAW_A2UI_SKIP_MISSING=1 pnpm build` before switching to a non-root `node` user and starting the gateway server.
This fits with a Discord-only deployment where the UI assets are not needed, reducing build work and avoiding UI build failures on some architectures.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Change is limited to removing a single Docker build step; it does not affect runtime command, permissions model, or application code paths. No indications of broken build dependencies were introduced in the Dockerfile itself.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#2609: bugfix: Docker build fails on main: .dockerignore excludes required...
by yanquankun · 2026-01-27
82.1%
#11576: Update Dockerfile, change file ownership during copy to prevent long …
by fastali · 2026-02-08
79.8%
#8376: Docker: inline chown to reduce image size and build time
by bugparty · 2026-02-03
78.7%
#4695: Fixed the default CLI image to use published GHCR image
by TASMAYU · 2026-01-30
78.5%
#23313: feat(docker): add optional build-arg OPENCLAW_INSTALL_DOCKER_CLI to...
by zhuxuwei88-bot · 2026-02-22
78.5%
#4450: fix bug #4366: Error: Config validation failed: plugins.slots.memor...
by tryagain3 · 2026-01-30
78.4%
#7316: fix: /chat dashboard performance
by felipcsousa · 2026-02-02
78.2%
#3240: Fix Docker build failures on Windows/WSL environments
by Attili-sys · 2026-01-28
78.1%
#22491: Use multi-stage docker build to reduce image size from 4.72GB -> 2....
by mm-zacharydavison · 2026-02-21
78.0%
#4238: Fix/docker migration atomicity
by ricardotrevisan · 2026-01-29
77.7%