mangeM
Denoβ€’14mo 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
.

I have a setup where I use
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
Was this page helpful?