# Languages and frameworks

Source: https://openpanel.sh/docs/builds/languages

What Railpack builds without a Dockerfile, how it decides, and how to steer it from your repository.

A service built from Git without a Dockerfile is built with [Railpack](https://railpack.com), the open-source builder (MIT) that Railway made to follow Nixpacks. Railpack looks at the service's folder, works out its language, framework and versions, and builds an image.

OpenPanel's agent uses **Railpack 0.44.0**. It downloads Railpack from Railway's GitHub release the first time a server builds, and installs it only when its SHA-256 matches the value built into the agent. Railpack's BuildKit frontend runs at the same version, pinned by its digest.

## What Railpack detects [#what-railpack-detects]

Railpack reads the root of the service's folder. These are the languages it builds and the files that mark each, from Railpack's own documentation:

| Language | Detected by |
|---|---|
| **Node.js**, Bun and front-end apps | `package.json` |
| **Python** | `requirements.txt`, `pyproject.toml` or `Pipfile`, or a `main.py`, `app.py`, `start.py`, `bot.py`, `hello.py` or `server.py` |
| **Go** | `go.mod`, `go.work` or `main.go` |
| **PHP**, Laravel | `index.php` or `composer.json` |
| **Java** | `gradlew`, or a `pom.xml` (or another `pom.*`) |
| **Ruby**, Rails | `Gemfile` |
| **Rust** | `Cargo.toml` |
| **Elixir**, Phoenix | `mix.exs` |
| **Deno** | `deno.json` or `deno.jsonc` |
| **.NET** | a `*.csproj` file |
| **Gleam** | `gleam.toml` |
| **C and C++** | `CMakeLists.txt` or `meson.build` |
| **Static sites** | `Staticfile`, `index.html`, or a `public` folder |
| **Shell scripts** | `start.sh` |

Railpack's [language pages](https://railpack.com/languages/node) say how it picks each language's version and its start command.

## Steer it from your repository [#steer-it-from-your-repository]

Your service's variables do not reach the build, so Railpack's `RAILPACK_*` variables cannot be set from OpenPanel. Steer it with files in the service's folder instead:

- **Versions:** the files each language already uses, such as `engines` in `package.json` or `.nvmrc` for Node.js, `.python-version` for Python, `.ruby-version` for Ruby, or a `mise.toml`.
- **`railpack.json`:** Railpack's own configuration, to force a language, change the install and build commands, or set the start command:

```json title="railpack.json"
{
  "$schema": "https://schema.railpack.com",
  "provider": "node",
  "deploy": {
    "startCommand": "node dist/server.js"
  }
}
```

See [Railpack's configuration file](https://railpack.com/config/file) for every field.

## The start command [#the-start-command]

The image starts with the command Railpack chose, or the one in `railpack.json`. A start command set on the service runs instead: `--start "<command>"` in the CLI or `startCommand` in the API, run with `/bin/sh -c`. See [Service settings](/docs/projects/settings).

## The port [#the-port]

OpenPanel does not tell your app which port to listen on. Make the app listen on the port you gave the service, for example by setting a `PORT` [variable](/docs/variables) that your app reads:

```sh
openpanel env set PORT=3000 --project shop --service web
```

## When Railpack is not the right fit [#when-railpack-is-not-the-right-fit]

Name a Dockerfile in the service's settings, and Docker builds with it instead. See [Dockerfile builds](/docs/builds/dockerfile).