mirror of
https://github.com/imjasonh/deno-image
synced 2026-07-11 18:40:04 +00:00
772 B
772 B
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 takes two optional positional args: ./build.sh [image-to-build] [base-image]