DenoDDeno
Powered by
mangeM
Denoβ€’16mo agoβ€’
4 replies
mange

where does `deno compile` place the V8 code cache?

In Deno 2.1 it was added a V8 code caching for faster startups when running a binary produced with
deno compile
deno compile
.

I have a setup where I use
deno compile
deno compile
with Docker to have a minimal alpine image that just runs the compiled binary in the end. How could I make sure to get this cache created at the inital run of the binary to improve the startup time of the Docker container?
I'm thinking that using a multi stage Dockerfile where I build and run the deno compiled binary and then copy that and the V8 code cache over to a bare alpine image would give me the best startup time.
So basically, where is this V8 code cache stored?
image.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Does Deno Compile Support Deno Serve --parallel?
PirateSharkPPirateShark / help
9mo ago
deno compile optimizations
subbedSsubbed / help
14mo ago
deno compile error
AuxyAAuxy / help
16mo ago
Deno compile optimization
mallquestMmallquest / help
3y ago