GitHub user dosubot[bot] added a comment to the discussion: Stuck when try to 
docker compose build Superset 5.0.0

<!-- Answer -->
This is a common pain point with Superset 5.0.0 Docker builds. The build often 
appears stuck at the "exporting layers" step due to the large size of static 
assets and the Python virtual environment created during the build. This step 
can take a long time, especially on machines with limited RAM, CPU, disk space, 
or slow storage (like non-SSD drives) — sometimes 10 minutes or more, but it 
does eventually finish for most users if you wait long enough 
[example](https://github.com/apache/superset/issues/33050).

To speed things up or avoid hangs: 
- Increase Docker's allocated memory (16GB+ is recommended), CPU, and disk 
space, especially on macOS or Windows [see 
docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/README.md).
- Clean up Docker volumes and node_modules: run `docker compose down -v`, 
`docker system prune --volumes`, and delete any leftover `node_modules` folders 
before rebuilding [example](https://github.com/apache/superset/issues/31951).
- Make sure your network is stable, especially for the npm install step. If 
you're in a region with restricted access (like China), set the npm registry to 
a local mirror and add proxy variables in `docker/.env` 
[example](https://github.com/apache/superset/issues/9116).
- If you see errors about Node.js or npm versions, Superset 5.0.0 expects 
Node.js ^20.16.0 and npm ^10.8.1 for frontend builds 
[example](https://github.com/apache/superset/issues/33050).
- If the build still hangs, try rebuilding with `--no-cache` and monitor your 
system's resource usage during the build.

If none of these help, let me know your OS, Docker version, and available 
resources, and if there are any error messages after the hang.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/97ccd43c-f83a-4083-9445-48bc4a768e77?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34586)

GitHub link: 
https://github.com/apache/superset/discussions/34586#discussioncomment-14028588

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to