Product Docs
Open Source
Education
Minimal container image for running deno apps
The image specifies a default non-root deno user (UID 65532), and a working directory at /app, owned by that deno user, and accessible to all users.
deno
/app
The image is available on cgr.dev:
cgr.dev
docker pull cgr.dev/chainguard/deno:latest
Navigate to the example/ directory:
example/
cd example/
The Dockerfile is based on Deno’s webserver tutorial, but packages it up into a Chainguard deno image.
Build the application on the deno base image.
docker build \ --tag deno-docker \ .
Then you can run the image:
docker run \ --rm -it \ -p 8080:8080 \ deno-docker
…and test to see that it works:
$ curl localhost:8080 Your user-agent is: curl/7.84.0%