GitHub user dosubot[bot] added a comment to the discussion: Upon deploying superset on k8s, UI is not being served (/app/superset-frontend directory has only package.json)
<!-- Greeting --> Hi @kyandaks! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> It looks like the Superset Docker image you’re using doesn’t have the frontend assets pre-built, which is why you only see package.json in /app/superset-frontend and the UI isn’t loading. The official build process for production images should run a script (docker/build-web.sh) that builds these assets before the image is finalized. If you’re using a custom image or a non-standard build, this step might have been skipped, or the image might have been built with DEV_MODE enabled, which skips asset building and leads to exactly this problem [reference](https://github.com/apache/superset/issues/32898). To fix this, you can exec into the container, cd into /app/superset-frontend, and run: ``` npm ci npm run build ``` This will build the frontend assets in place and should make the UI available [reference](https://github.com/apache/superset/issues/32187#issuecomment-2647155633). For a permanent solution, make sure your Docker image build process includes the asset build step, or use an official image that already has the assets built. If you’re deploying under a subpath, also check that SUPERSET_APP_ROOT is set correctly in your environment and that your ingress/proxy config matches [reference](https://github.com/apache/superset/issues/33226). Let me know if you need more details on the Docker build or config! <!-- 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/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e5a05168-088e-4347-baeb-61bec82ce11f?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33840) GitHub link: https://github.com/apache/superset/discussions/33840#discussioncomment-13528385 ---- 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]
