Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce size, serve production build #14

Merged
merged 1 commit into from Aug 18, 2022
Merged

Reduce size, serve production build #14

merged 1 commit into from Aug 18, 2022

Conversation

ioppermann
Copy link
Member

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

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
Copy link
Member Author

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.

@ioppermann ioppermann merged commit c9b8b6a into dev Aug 18, 2022
@ioppermann ioppermann deleted the dockerfile branch August 18, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant