Skip to content

Make lab smaller #706

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

Merged
merged 1 commit into from
Jul 11, 2025
Merged

Make lab smaller #706

merged 1 commit into from
Jul 11, 2025

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jul 11, 2025

What

Reduce the lab files embedded into the image to only the files needed to run lab.

Before lab

Uncompressed: 0.70G
Compressed: 0.23G
https://hub.docker.com/layers/stellar/quickstart/v481-future/images/sha256-7480e1b3f568ee4848bb907854266de13e04e83a8610b6bdafa5ed5bf6495d33

After lab, Before this PR

Uncompressed: 2.33G
Compressed: 0.60G
https://hub.docker.com/layers/stellar/quickstart/v484-future/images/sha256-0528af8c7585d32533bc0ba2b33772f18c4809f27d0183e0cd40f48399e8897c

After this PR

Uncompressed: 0.91G
Compressed: 0.29G
https://hub.docker.com/layers/stellar/quickstart/pr706-v485-future/images/sha256-75cd5dc2f3a8c6e22765fdfdeb4f9ef4929ca90c7b9ad3eb1eed6c97550ec153

Why

Quickstart got bigger when we added lab. We followed the instructions in the lab repo for how to use the production build, but it turns out lab actually builds a standalone version of Next.js that is smaller in size and can be used instead.

Close #695

Related:

@fnando
Copy link
Member

fnando commented Jul 11, 2025

This is amazing! Thanks for taking a look.

@leighmcculloch leighmcculloch merged commit 4b2b7fc into main Jul 11, 2025
188 of 190 checks passed
@leighmcculloch leighmcculloch deleted the tinylab branch July 11, 2025 07:40
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Jul 11, 2025
@janewang
Copy link
Contributor

This is great! The size came down lot, thank you @leighmcculloch!

cc @sagpatil

@sagpatil
Copy link
Contributor

Awesomeness 😎 this is amazing thanks @leighmcculloch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Optimize stellar lab so it doesn't increase the docker image size too much
4 participants