deno-buildpack

module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: BSD-2-Clause

README

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).

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL