datarhei / restreamer-ui

The user interface of the Restreamer for the connection to the Core application.
https://datarhei.com
Apache License 2.0
46 stars 38 forks source link

Reduce size, serve production build #14

Closed ioppermann closed 2 years ago

ioppermann commented 2 years ago

Reduce the size of the Docker image by only holding the production build of the UI. The files are served by Caddy server. For bundling, the production build files are still in /ui/build

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3dae99a
Status: ✅  Deploy successful!
Preview URL: https://7eaa6ab6.restreamer.pages.dev
Branch Preview URL: https://dockerfile.restreamer.pages.dev

View logs

ioppermann commented 2 years ago

Will solve issue #12

With the previous Dockerfile and resulting image, it contains the whole node_modules directory and the development server will be started, even though the production build is the one that should be served if you want to use it independent from the bundle.