Skip to content

Reduce image size#2306

Merged
charlesBochet merged 3 commits intomainfrom
reduce-dev-image-size
Oct 31, 2023
Merged

Reduce image size#2306
charlesBochet merged 3 commits intomainfrom
reduce-dev-image-size

Conversation

@charlesBochet
Copy link
Copy Markdown
Member

@charlesBochet charlesBochet commented Oct 31, 2023

After a bit of work, I don't think there is something very wrong with the current image:

  • we have ~2GB of node_modules for server + front + docs
  • we have ~3GB of yarn cache (ouch)
  • we have ~1GB of playwright for testing on emulated browsers.

We could clean the yarn cache so it's not included in the image (the total image would be ~4GB) but then the first yarn install will be very slow as this cache needs to be rebuilt anyway.

I think we should:
migrate to Yarn Modern that would not duplicate node_modules + yarn cache (-3GB)

@charlesBochet charlesBochet merged commit 1c5c71b into main Oct 31, 2023
@charlesBochet charlesBochet deleted the reduce-dev-image-size branch October 31, 2023 20:43
@charlesBochet charlesBochet mentioned this pull request Nov 30, 2023
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.

1 participant