deno in a Container
Pull the image from the dockerhub
docker pull permadiafrian/deno:latest
docker build -t yourusername/deno:latest .
Example: running example from deno https://deno.land/std/examples/welcome.ts
docker run -it --rm permadiafrian/deno:latest run https://deno.land/std/examples/welcome.ts
this should showing a Welcome to Deno 🦕 output.
Deno cache directory:
/home/deno/.cacheYou can mount a named volume to Deno cache for saving downloaded and compiled library.
docker volume create denocache
docker run -it --rm -v denocache:/home/deno/.cache permadiafrian/deno:latest run https://deno.land/std/examples/welcome.ts
Im still looking for the monster inside Loch Ness. Any kind of help, advice and criticism will always be welcomed.
MIT License © 2020, Permadi Afrian
Content type
Image
Digest
Size
64.3 MB
Last updated
over 5 years ago
docker pull permadiafrian/deno