Sign inSign up

helppoelama/deno

By helppoelama

Updated almost 6 years ago

Deno with Alpine. This is based upon the work of Torgie: https://hub.docker.com/r/torgie/deno.land

Image
0

440

helppoelama/deno repository overview

🦕 Deno with Alpine

Based on the Docker repository from Torgie: A barebones Deno webserver in Docker, @github

- Light (134MB)
- Includes sudo, nano and fish shell

Deno Docker Image

A tiny, Alpine-based Deno image. It spawns a "hello world" webserver.

Running

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 server

Implementation

This 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/Mac
  • c:\Windows\system32\drivers\etc\hosts on Windows. (Run Notepad.exe in Administrator mode to edit this file).

Running your own scripts

If you want to test out your own scripts instead of running the provided example server:

  • Mount your scripts folder to the /app folder in the container.
  • Provide a new 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
Note: this lives in helppoelama/deno:latest so replace torgie/deno.land:latest with it.

And to stop it:

docker stop deno

Tag summary

Content type

Image

Digest

Size

56.1 MB

Last updated

almost 6 years ago

docker pull helppoelama/deno