1
0
Fork 0
mirror of https://github.com/imjasonh/deno-image synced 2026-07-08 00:56:00 +00:00
No description
Find a file
2021-08-24 11:55:21 -04:00
vendor add lock/vendor stuff, make image and base configurable 2021-08-24 11:55:21 -04:00
.gitignore initial commit 2021-08-24 09:37:21 -04:00
build.sh add lock/vendor stuff, make image and base configurable 2021-08-24 11:55:21 -04:00
example.js demonstrate dependencies 2021-08-24 09:59:16 -04:00
LICENSE initial commit 2021-08-24 09:37:21 -04:00
lock.json add lock/vendor stuff, make image and base configurable 2021-08-24 11:55:21 -04:00
README.md add lock/vendor stuff, make image and base configurable 2021-08-24 11:55:21 -04:00
run.sh initial commit 2021-08-24 09:37:21 -04:00

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]