Skip to content
Skip to Content

Languages and frameworks

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, 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

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:

LanguageDetected by
Node.js, Bun and front-end appspackage.json
Pythonrequirements.txt, pyproject.toml or Pipfile, or a main.py, app.py, start.py, bot.py, hello.py or server.py
Gogo.mod, go.work or main.go
PHP, Laravelindex.php or composer.json
Javagradlew, or a pom.xml (or another pom.*)
Ruby, RailsGemfile
RustCargo.toml
Elixir, Phoenixmix.exs
Denodeno.json or deno.jsonc
.NETa *.csproj file
Gleamgleam.toml
C and C++CMakeLists.txt or meson.build
Static sitesStaticfile, index.html, or a public folder
Shell scriptsstart.sh

Railpack's language pages say how it picks each language's version and its start command.

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:
railpack.json
{
  "$schema": "https://schema.railpack.com",
  "provider": "node",
  "deploy": {
    "startCommand": "node dist/server.js"
  }
}

See Railpack's configuration file for every field.

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.

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 that your app reads:

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

When Railpack is not the right fit

Name a Dockerfile in the service's settings, and Docker builds with it instead. See Dockerfile builds.