my repo's docker image size reduce from 110mb to 60mb after I use --prod in deno install, defore --prod I only use npm-lazy-caching in install and run
since it's so powerfull and my repo has havey auto-install usage (it loads parts provide form user and use auto-install to load parts's deps, thats also why clear import cache importent for me), I wanna use --prod in running for further volume reduction
maybe just deno run --prod <file>, or allows us set it in deno.json then deno run -c "./deno.json"
e.g.:
{
"nodeModulesDir": "auto",
"lock": false,
"prod": true,
"unstable": [
"npm-lazy-caching"
]
}
links for how I use auto-install/prod/npm-lazy-caching in my repo:
https://github.com/steve02081504/fount/blob/master/src/server/parts_loader.mjs
https://github.com/steve02081504/fount/blob/master/deno.json
steve02081504/fount@1094d91
ps: my discord got banned so if you talk with me on discord ill never know :(
my repo's docker image size reduce from 110mb to 60mb after I use
--prodin deno install, defore--prodI only use npm-lazy-caching in install and runsince it's so powerfull and my repo has havey auto-install usage (it loads parts provide form user and use auto-install to load parts's deps, thats also why clear import cache importent for me), I wanna use
--prodin running for further volume reductionmaybe just
deno run --prod <file>, or allows us set it in deno.json thendeno run -c "./deno.json"e.g.:
{ "nodeModulesDir": "auto", "lock": false, "prod": true, "unstable": [ "npm-lazy-caching" ] }links for how I use auto-install/prod/npm-lazy-caching in my repo:
https://github.com/steve02081504/fount/blob/master/src/server/parts_loader.mjs
https://github.com/steve02081504/fount/blob/master/deno.json
steve02081504/fount@1094d91
ps: my discord got banned so if you talk with me on discord ill never know :(