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.
The image is available on cgr.dev:
docker pull cgr.dev/chainguard/deno:latest
Navigate to the example/ directory:
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 \
…and test to see that it works:
$ curl localhost:8080
Your user-agent is: