A deno buildpack (for runway).
Deno is an alternative JavaScript runtime for the server. This buildpacks generates a Docker/OCI image from your application code and includes the correct version of deno to run the server with.
BP_RUNWAY_DENO_VERSION=BP_RUNWAY_DENO_FILE_VERSION=runtime.txtBP_RUNWAY_DENO_PERM_ENV=PORTBP_RUNWAY_DENO_PERM_HRTIME=falseBP_RUNWAY_DENO_PERM_NET=trueBP_RUNWAY_DENO_PERM_FFI=falseBP_RUNWAY_DENO_PERM_READ=trueBP_RUNWAY_DENO_PERM_RUN=falseBP_RUNWAY_DENO_PERM_WRITE=falseBP_RUNWAY_DENO_PERM_ALL=falseBP_RUNWAY_DENO_MAIN=main.ts,server.tsBP_RUNWAY_DENO_SERVE=false
Supported permissions:
--allow-env= --allow-hrtime --allow-net= --allow-ffi --allow-read= --allow-run= --allow-write= -A, --allow-all
Configuration is done through environment variables.
Permissions can be generally enabled with a true value. So for example:
export BP_RUNWAY_DENO_PERM_NET=trueThe above allows all net access, but it could be more granular with:
export BP_RUNWAY_DENO_PERM_NET=github.com:443Order of priority:
Supersedes BP_RUNWAY_DENO_FILE_VERSION.
Contains a version such as vA.B.C.
Important
Tested with Deno 1.x and 2.x
runtime.txt should contain a version, such as vA.B.C.
(last) The buildpack also supports a
.dvmrcfile.
See CONTRIBUTING.md for everything (local setup, testing, releasing).