GitHub user dosubot[bot] added a comment to the discussion: Impossible to run 
dev-server

<!-- Answer -->
Yes, you can work around frontend build failures by using a pre-built Superset 
Docker image and injecting your custom frontend code. The standard approach is 
to build your custom frontend assets locally (outside Docker), then either 
mount them into the container or extend the image.

For development, Superset's Docker setup mounts the local `superset-frontend` 
directory into the container, allowing you to hot-reload or override the 
frontend code. If you want to inject built assets into a running container or a 
pre-built image, you can do this by either:

- Mounting your local build output (the built static files) into the 
appropriate directory inside the container using a Docker volume.
- Creating a custom Dockerfile that starts FROM the official Superset image, 
then copies your built frontend assets into the correct location.

This method requires you to build the frontend assets on your host machine 
(using `npm run build` in `superset-frontend`), then either mount or copy the 
resulting files into the container. This is a common workaround when the 
in-container build fails, and it is supported by the way Superset's Docker 
Compose and Dockerfiles are structured. There is no official documentation for 
this exact workflow, but it is the standard practice for customizing the 
frontend in containerized deployments. See more details in [this 
discussion](https://github.com/apache/superset/discussions/35571) and 
[docker-compose.yml](https://github.com/apache/superset/blob/master/docker-compose.yml).


<!-- 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/75d976fd-d14b-4eb9-87f4-51b787e13988?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/75d976fd-d14b-4eb9-87f4-51b787e13988?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/75d976fd-d14b-4eb9-87f4-51b787e13988?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/75d976fd-d14b-4eb9-87f4-51b787e13988?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/75d976fd-d14b-4eb9-87f4-51b787e13988?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/75d976fd-d14b-4eb9-87f4-51b787e13988?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/75d976fd-d14b-4eb9-87f4-51b787e13988?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/35618)

GitHub link: 
https://github.com/apache/superset/discussions/35618#discussioncomment-14664205

----
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