deno-buildpack
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.
Configuration
BP_RUNWAY_DENO_VERSION=
BP_RUNWAY_DENO_FILE_VERSION=runtime.txt
BP_RUNWAY_DENO_PERM_ENV=PORT
BP_RUNWAY_DENO_PERM_HRTIME=false
BP_RUNWAY_DENO_PERM_NET=true
BP_RUNWAY_DENO_PERM_FFI=false
BP_RUNWAY_DENO_PERM_READ=true
BP_RUNWAY_DENO_PERM_RUN=false
BP_RUNWAY_DENO_PERM_WRITE=false
BP_RUNWAY_DENO_PERM_ALL=false
BP_RUNWAY_DENO_MAIN=main.ts,server.ts
Supported permissions:
--allow-env=
--allow-hrtime
--allow-net=
--allow-ffi
--allow-read=
--allow-run=
--allow-write=
-A, --allow-all
Environment variables
Configuration is done through environment variables.
Permissions can be generally enabled with a true
value. So for example:
export BP_RUNWAY_DENO_PERM_NET=true
The above allows all net access, but it could be more granular with:
export BP_RUNWAY_DENO_PERM_NET=github.com:443
Deno version
Order of priority:
BP_RUNWAY_DENO_VERSION
Supersedes BP_RUNWAY_DENO_FILE_VERSION
.
Contains a version such as vA.B.C
.
BP_RUNWAY_DENO_FILE_VERSION
runtime.txt
should contain a version, such as vA.B.C
.
(last) The buildpack also supports a .dvmrc
file.
Contributions?
See CONTRIBUTING.md for everything (local setup, testing, releasing).