Image Overview: deno

Overview: deno Chainguard Image

Minimal container image for running Deno apps

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/deno:latest

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.

Usage Example

Navigate to the example/ directory:

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%

Last updated: 2024-04-11 12:38