GitHub user kyandaks added a comment to the discussion: Upon deploying superset 
on k8s, UI is not being served (/app/superset-frontend directory has only 
package.json)

@dosu I have a CI/CD pipeline to build custom image that am using for 
deployment to k8s. Below is the dockerfile:
```
FROM apache/superset:4.1.2
USER root
RUN pip install psycopg2-binary Pillow
USER superset
CMD ["/app/docker/entrypoints/run-server.sh"]
```

The possibility to have a multi stage dockerfile which:
- copies the superset-frontend directory 
- then execute `npm ci` and `npm run build` the script for building production 
(ENV=Production)
- the assets from build will be copied to /app/superset-frontend directory on 
the image such that at container runtime these are served.

Thou it is odd that even when I use the official superset image 
`apache/superset:4.1.2` it also has no compiled assets. I only see the 
package.json file in the /app/superset-frontend directory


GitHub link: 
https://github.com/apache/superset/discussions/33840#discussioncomment-13529173

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