A tiny, Ubuntu-based Deno image. It spawns a “hello world” webserver.
To run, execute ./start.sh
. This will start a docker-compose
service stack containing:
app
: A simple Deno HTTP server that outputs “Hello World!”nginx
: The extremely popular Nginx reverse proxy that sits in front of the Deno serverThis app, out of the box, will assume that you’re running the server at the URL https://deno.local
. You’ll need to map this hostname to your Docker Machine’s IP address using whatever hosts file is appropriate for your operating system.
/etc/hosts
on linux/Macc:\Windows\system32\drivers\etc\hosts
on Windows. (Run Notepad.exe
in Administrator mode to edit this file).If you want to test out your own scripts instead of running the provided example server:
/app
folder in the container.deno run
command to execute your script. Don’t forget to allow the necessary permissions!Example:
docker run --rm --name deno \
-v /my/scripts/directory:/app:ro \
torgie/deno.land:latest \
deno run myScript.js
And to stop it:
docker stop deno
Author: torgie
Demo: https://hub.docker.com/repository/docker/torgie/deno.land
Source Code: https://github.com/torgie/docker-deno
#deno #nodejs #node #javascript #docker