You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development, a lot of unnecessary installs are performed because the dependencies are installed after copying the code, which means docker doesn't cache it.
I switched from using node:20.5 to node:20-slim, saving a lot of bandwidth when it has to be pulled.
I also moved the yarn install up so it only installs the dependencies when the package.json or yarn.lock files changed.
fixes: #639
During development, a lot of unnecessary installs are performed because the dependencies are installed after copying the code, which means docker doesn't cache it.
For further reference: https://www.augmentedmind.de/2022/02/06/optimize-docker-image-size/
The text was updated successfully, but these errors were encountered: