coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Build perfromance with dockerfiles and npm/yarn packages is very slow

Open peaklabs-dev opened this issue 1 year ago • 3 comments

Description

See this thread for more details: https://discord.com/channels/459365938081431553/1227670703562559499

Minimal Reproduction (if possible, example repository)

Currently, building docker images or installing yarn/npm packages is very slow. Even the simplest packages can take up to 10 minutes on server specs 2cores and 4gb of ram even on better specs this can be a problem.

Exception or Error

No response

Version

v4.0.0-beta.306

peaklabs-dev avatar Jun 28 '24 09:06 peaklabs-dev

I have a similar issue. In my case, it takes 1 full hour for Django and python to build.

brightkan avatar Jun 28 '24 17:06 brightkan

yeah, in my case git clone is too slow and it breaks connection with 8 err

ltshv avatar Jun 29 '24 00:06 ltshv

I don't experience the listed issues but I do notice that pnpm does not cache my dependencies. My Dockerfile pnpm install command is the same as listed on the pnpm wiki

ari-party avatar Jun 30 '24 21:06 ari-party

This is probably nixpacks related, and for caching dependencies I added a feature request: https://github.com/coollabsio/coolify/discussions/3610.

peaklabs-dev avatar Sep 27 '24 16:09 peaklabs-dev