# Languages

Every Reverhost app builds from a Dockerfile stored on the app. Start from one of these templates, or write your own for any other language.

## Starter Dockerfiles

- [Node.js](/languages/nodejs): template `node`
- [Bun](/languages/bun): template `bun`
- [Python](/languages/python): template `fastapi`
- [Go](/languages/go): template `go`
- [Ruby](/languages/ruby): template `ruby`
- [PHP](/languages/php): template `php`
- [Rust](/languages/rust): template `rust`
- [Zig](/languages/zig): template `zig`

## Use a template

```
npx ezhst build dockerfile template
npx ezhst build dockerfile template fastapi
npx ezhst build dockerfile template fastapi --apply
```

Without an id, the command lists every template. With an id it prints the Dockerfile, and `--apply` saves it to the linked app.

## Rules for every language

Listen on `0.0.0.0:$PORT`, keep the image under 1 GB and pass build-time values through the `appenv` secret. The [Dockerfile guide](/guides/write-a-dockerfile) covers the details, and the [frameworks hub](/frameworks) has framework-specific Dockerfiles.
