Building container images for Deno, without Docker
build.sh
builds example.js
using deno compile
, then appends it on top of a default distroless base image, and makes the example
executable the image's entrypoint, using crane
.
It does all this without a Dockerfile, without invoking docker build
, and without requiring a container runtime.
run.sh
runs build.sh
then runs the resulting image using docker run
.
Only this step requires a container runtime.
build.sh
and run.sh
takes two optional positional args: build.sh [image-to-build] [base-image]
deno
crane
- Docker auth configured