This page is the reference for auto build: what it recognizes, in what order, and the start command it infers. It recognizes 188 entries (30 languages, 76 frameworks, 44 libraries, 27 site generators, 11 CMSs).
The framework chosen and the start command are shown in the build log, at step 4. Detection. It is the first place to look when a service does not start as expected.
Node.js, static sites and Dockerfile mode are the most used paths. For another language, read the first build's log: it shows the base image, the packages added and the command chosen.
Detection order
A repository often contains several languages: a Laravel project has a vite.config.js, a Django project has a package.json. The build tests the rules in this order and stops at the first one that matches.
- Dockerfile build chosen for the service: the repository's
Dockerfileis built as is, no detection (Docker). - Dev environment: the repository's
devscript is run, with no production build (Node.js only). - Static site nature: the files are published behind Nginx (see below).
- Frameworks specific to a language other than Node.js: Laravel, Rails, Django, FastAPI, Spring Boot, Phoenix.
- Node.js frameworks: Next.js, Nuxt, Remix, Astro, Vite, NestJS, Strapi.
- Languages, libraries and site generators: Go, Rust, Python, Hugo, MkDocs.
- Generic Node.js servers: Express, Fastify, Koa, then any
package.jsonthat has astartscript. - A
Dockerfileat the root, if nothing else is recognized. The log shows a warning. - Otherwise the build fails with the message "Framework not detected".
Step 4 comes before step 5 so that a Laravel project is not mistaken for a Vite site. Step 7 comes last because many Django or Rails repositories have a package.json that mentions express.
In the tables that follow, "dependency" means a package declared in dependencies or devDependencies of package.json, or in the language's equivalent file (requirements.txt, composer.json, Gemfile, go.mod, Cargo.toml, pom.xml).
Node.js
Node.js version
The image is node:<version>-alpine. The major version is chosen as follows:
- that of
.nvmrc,.node-versionor thevolta.nodefield ofpackage.json, if it respectsengines.node; - otherwise, from the
engines.noderange: 22 if the range accepts it, otherwise the most recent LTS version it accepts among 24, 22, 20, 18, 16 and 14; - otherwise 22.
Examples: "engines": { "node": ">=18" } gives Node 22. ">=18 <21" gives Node 20. An .nvmrc containing lts/iron gives Node 20.
Package manager
The repository's lock file decides the manager. The install is frozen: it installs exactly the versions in the file, and refuses to modify it.
| Lock file | Install command |
|---|---|
bun.lock, bun.lockb | bun install --frozen-lockfile |
pnpm-lock.yaml | pnpm install --frozen-lockfile |
yarn.lock (Yarn 1) | yarn install --frozen-lockfile |
yarn.lock (Yarn 2 and later) | corepack enable && yarn install --immutable |
package-lock.json, npm-shrinkwrap.json | npm ci --include=dev |
- With no lock file while
package.jsondeclares dependencies, the build fails at the Detection step. - With a file out of date with
package.json, the frozen install fails. Regenerate it locally (npm install,bun install...) and commit it. - If several lock files are committed, the
packageManagerfield ofpackage.jsonnames the one to try first. Otherwise the table's order applies. If the first is out of date, the build moves on to the next and the log says which one was used. "packageManager": "pnpm@9.1.0"also fixes the version of the installed manager.
The build then runs npm run build if the build script exists. Scripts that call bun, pnpm or yarn find these tools during the build. In the runtime image, bun or pnpm is only present if the start command calls it (for example bun run server.ts).
Start command of a Node.js server
For servers with no strong convention (Express, Koa, Fastify...), the command is resolved in this order:
- the
startscript inpackage.json, run bynpm start; - the
mainfield, if it points to a file present in the repository:node <main>; - the first usual entry point present in the repository (list in the servers table);
- otherwise the first one in that list, even if absent from the repository, assuming the build produces it.
Defining a start script removes all ambiguity.
Frameworks with server rendering
| Framework | Detected by | Start |
|---|---|---|
| Next.js | next.config.js, .mjs or .ts, or next dependency | standalone output: node server.js (Next.js) |
| Blitz.js | blitz dependency | npx blitz start |
| RedwoodJS | redwood.toml or @redwoodjs/* dependency | build npx rw build, then npx rw serve --port $PORT |
| Nuxt | nuxt.config.js or .ts, or nuxt dependency | node .output/server/index.mjs |
| Nitro | nitropack dependency | node .output/server/index.mjs |
| SolidStart | @solidjs/start dependency | node .output/server/index.mjs |
| TanStack Start | @tanstack/react-start dependency | node .output/server/index.mjs |
| SvelteKit | svelte.config.js or .ts, or @sveltejs/kit dependency | node build/index.js |
| Remix (classic compiler) | remix.config.js or .ts | npx remix-serve build |
| Remix (Vite) | @remix-run/* dependency without remix.config | npx remix-serve build/server/index.js |
| React Router | @react-router/dev dependency | npx react-router-serve ./build/server/index.js |
| Analog | @analogjs/* dependency | node dist/analog/server/index.mjs |
| Astro with adapter | astro.config.* contains adapter | node ./dist/server/entry.mjs |
| Qwik City with Express | src/entry.express.tsx or .ts | node server/entry.express.js |
| Vike | vike dependency | start script, otherwise server/index.js, server.js, index.js |
| Sapper | sapper dependency | node __sapper__/build |
Details:
- SvelteKit must use
@sveltejs/adapter-node, which producesbuild/index.js. The Vercel or Netlify adapters do not produce a server. - Astro without an adapter is served as a static site from
dist. For server rendering, install@astrojs/node. - Qwik City without
src/entry.express.tsxis served as a static site fromdist.npx qwik add expressadds this file. - Nuxt, Nitro, SolidStart and TanStack Start produce the same output, in
.output.
Servers and APIs
| Framework | Detected by | Start |
|---|---|---|
| NestJS | @nestjs/core dependency | node dist/main.js |
| AdonisJS 6 | @adonisjs/core dependency and adonisrc.ts file | node build/bin/server.js |
| AdonisJS 5 | @adonisjs/core dependency | node build/server.js |
| Egg.js | egg dependency | npx egg-scripts start --port $PORT |
| Moleculer | moleculer dependency | start script, otherwise npx moleculer-runner services |
| Sails | sails dependency | start script, main, otherwise app.js |
| LoopBack 4 | @loopback/core dependency | start script, otherwise node . |
| FeathersJS | @feathersjs/* dependency | start script, main, otherwise src/index.js, lib/index.js, dist/index.js |
| FoalTS | @foal/core dependency | start script, otherwise node build/index.js |
| Marble.js | @marblejs/core dependency | start script, otherwise node dist/main.js |
| Apollo Server | @apollo/server dependency | start script, main, otherwise dist/index.js, index.js, src/index.js |
| GraphQL Yoga | graphql-yoga dependency | start script, main, otherwise dist/index.js, index.js, src/index.js |
| Fastify | fastify dependency | start script, main, otherwise server.js, app.js, index.js, then the same under src/ |
| Hono | hono dependency | start script, main, otherwise dist/index.js, index.js, src/index.js |
| Hapi | @hapi/hapi or hapi dependency | start script, main, otherwise server.js, index.js, then the same under src/ |
| Restify | restify dependency | start script, main, otherwise server.js, index.js, then the same under src/ |
| Total.js | total.js, total4 or total5 dependency | start script, main, otherwise index.js, debug.js |
| Polka | polka dependency | start script, main, otherwise index.js, server.js, src/index.js |
| Koa | koa dependency | start script, main, otherwise app.js, index.js, server.js, then the same under src/ |
| Seneca | seneca dependency | start script, main, otherwise index.js, server.js, app.js, src/index.js |
| Express | express dependency | start script, main, otherwise index.js, server.js, app.js, then the same under src/ |
| Socket.IO | socket.io dependency | start script, main, otherwise index.js, server.js, src/index.js |
| Node.js | a start script in package.json | npm start |
NestJS, AdonisJS, FoalTS and Marble.js start from their compiled output. The repository's build script must therefore produce the indicated file. Express is tested after the others because it is a dependency of many of them.
CMS
| CMS | Detected by | Start |
|---|---|---|
| Strapi | @strapi/strapi dependency | start script, otherwise npx strapi start |
| Payload CMS | payload dependency | npm run serve if the script exists, otherwise npm start |
| KeystoneJS | @keystone-6/core dependency | start script, otherwise npx keystone start |
| Medusa | @medusajs/medusa dependency | start script, otherwise npx medusa start |
| Directus | directus dependency | start script, otherwise npx directus start |
Generated sites
These tools produce a folder of files. In the Application nature, the image serves it with the serve package, installed in the image at build time.
| Tool | Detected by | Folder served | Unknown routes to index.html |
|---|---|---|---|
| Vite (React, Vue, Svelte) | vite.config.js, .ts or .mjs | dist | No |
| Parcel | parcel dependency | dist | No |
| Astro without adapter | astro dependency | dist | No |
| Qwik City without Express | @builder.io/qwik-city dependency | dist | No |
| Gatsby | gatsby dependency or gatsby-config.* | public | No |
| Docusaurus | @docusaurus/core dependency | build | No |
| VitePress | vitepress dependency | docs/.vitepress/dist | No |
| VuePress | vuepress or @vuepress/* dependency | docs/.vuepress/dist | No |
| Eleventy | @11ty/eleventy dependency | _site | No |
| Hexo | hexo dependency | public | No |
| Docsify | docsify-cli dependency | docs, otherwise the root | No |
| Storybook | storybook dependency | storybook-static | No |
| Gulp | a gulpfile.* file | first dest('…') in the gulpfile, otherwise dist, www, build | No |
| Angular | @angular/core dependency | the dist folder that contains index.html | Yes |
| Create React App | react-scripts dependency | build | Yes |
| Vue CLI | @vue/cli-service dependency | dist | Yes |
| Preact CLI | preact-cli dependency | build | Yes |
| Ember | ember-cli dependency | dist | Yes |
The last column matters for single-page applications that handle their routes in the browser (React Router, Vue Router). With "No", reloading the page on /dashboard returns a 404 error. For a Vite project of this kind, choose the Static site nature: Nginx then sends any unknown address to index.html (React / Vite).
VitePress, VuePress, Eleventy and Hexo are generated directly (npx vitepress build docs, npx @11ty/eleventy, npx hexo generate) when the repository has no build script.
Native libraries added automatically
Some npm packages need system libraries. The build installs them when it sees the dependency.
| npm dependency | Added to the image |
|---|---|
canvas | Cairo, Pango, libjpeg, giflib, librsvg, pixman |
puppeteer, puppeteer-core | Chromium, with PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium and PUPPETEER_SKIP_DOWNLOAD=true |
fluent-ffmpeg, @ffmpeg-installer/ffmpeg | ffmpeg |
gm | GraphicsMagick |
pdf-poppler | poppler-utils |
node-rdkafka | librdkafka |
kerberos | krb5 |
serialport, usb | eudev, libusb |
pg-native | PostgreSQL client |
odbc | unixODBC |
All Node.js images also contain openssl (required by Prisma) and libc6-compat (for precompiled binaries).
The "Static site" nature
With the Static site nature, chosen at creation or in the service settings, the build does not look for an application server. The image produced is an Nginx 1.28 that serves your files.
| Repository content | What is published |
|---|---|
A package.json with a build script | The build is run, then the first folder containing an index.html among dist, build, out, _site, .output/public, public, www |
HTML files with no build script | The first folder containing an index.html among the root, public, dist, build, site, _site, www |
What this Nginx does:
- it listens on the service's port;
/aboutservesabout.htmlif it exists;- an unknown address returns
index.html, which suits browser-side routers; - hidden files (
.env,.git,.htpasswd) are never served, except the.well-knownfolder; - CSS, JavaScript, JSON and SVG are gzip-compressed.
If no index.html is found and there is no build script, the build fails with the message "No index.html found". A nature change in the settings takes effect at the next build.
With no repository, the Static site template deploys an Nginx with a persistent folder, editable from the Files panel.
Python
The image is python:<version>-alpine. The version comes from .python-version, runtime.txt, Pipfile or requires-python. With no indication, or with a lower bound like >=3.9, it is Python 3.12.
| Framework | Detected by | Start |
|---|---|---|
| Django, Wagtail | manage.py and the dependency | gunicorn <project>.wsgi:application --bind 0.0.0.0:$PORT |
| FastAPI, Litestar, Starlette, Quart | dependency | uvicorn <module>:<app> --host 0.0.0.0 --port $PORT |
| Flask, Bottle, Falcon | dependency | gunicorn '<module>:<app>' --bind 0.0.0.0:$PORT |
| Sanic | dependency | sanic <module>:<app> |
| Dash | dependency | gunicorn '<module>:server' --bind 0.0.0.0:$PORT if the code contains server = app.server, otherwise python <file> |
| Streamlit | dependency | streamlit run <file> --server.port=$PORT --server.address=0.0.0.0 |
| Gradio | dependency | python <file>, with GRADIO_SERVER_NAME=0.0.0.0 and GRADIO_SERVER_PORT=$PORT |
| Chainlit | dependency | chainlit run <file> --host 0.0.0.0 --port $PORT |
| Panel | dependency | panel serve <file> --address 0.0.0.0 --port $PORT |
| Tornado, aiohttp, CherryPy | dependency | python <file> (the application must read PORT) |
| MkDocs | mkdocs.yml | static site: mkdocs build -d site |
| Pelican | pelicanconf.py | static site |
| Sphinx | conf.py or docs/conf.py, with no application | static site: sphinx-build -b html docs _build/html |
| Python | main.py, app.py, server.py or run.py | python <file> |
Details on installation and system packages are on Python.
PHP
The image is php:<version>-cli-alpine. The version comes from composer.json, 8.3 by default. The server is PHP's built-in server.
| Framework | Detected by | Start |
|---|---|---|
| Laravel | laravel/framework dependency, or artisan with composer.json | php artisan serve --host=0.0.0.0 --port=$PORT |
| Statamic | statamic/cms dependency | php artisan serve --host=0.0.0.0 --port=$PORT |
| Lumen, Symfony, Slim, Laminas | matching dependency | php -S 0.0.0.0:$PORT -t public |
| CodeIgniter | codeigniter4/framework dependency or spark file | php spark serve --host 0.0.0.0 --port $PORT |
| CakePHP | cakephp/cakephp dependency | bin/cake server -H 0.0.0.0 -p $PORT |
| Yii | yiisoft/yii2 dependency | php -S 0.0.0.0:$PORT -t web |
| Craft CMS, Drupal, Kirby | matching dependency | php -S 0.0.0.0:$PORT -t <web root> |
| WordPress | wp-config.php, wp-load.php or wp-content/ | php -S 0.0.0.0:$PORT -t . |
| Grav | system/ and user/ folders | php -S 0.0.0.0:$PORT -t . |
| PHP | an index.php at the root or in public, web, webroot, html, www | php -S 0.0.0.0:$PORT -t <web root> |
See PHP for extensions and Composer.
Go
Compilation is done in golang:<version>-alpine (version from go.mod, 1.24 by default). The final image is an Alpine 3.21 that contains only the binary, launched by ./server. Gin, Echo, Fiber, Chi, Gorilla Mux, Iris, Beego, Buffalo and go-zero are recognized and built the same way. Hugo is recognized as a site generator (hugo --minify --gc). See Go.
Ruby
The image is ruby:<version>-alpine. The version comes from .ruby-version, .tool-versions or the Gemfile, 3.3 by default. Bundler is installed at the version given by Gemfile.lock, without the development and test groups.
| Framework | Detected by | Start |
|---|---|---|
| Rails | rails gem | bundle exec rails server -b 0.0.0.0 -p $PORT, after assets:precompile if the project has assets |
| Hanami | hanami gem | bundle exec hanami server --host=0.0.0.0 --port=$PORT |
| Sinatra, Padrino, Grape, Roda, Rack | matching gem or config.ru | bundle exec rackup config.ru -o 0.0.0.0 -p $PORT |
| Jekyll, Middleman, Bridgetown | matching gem | static site: _site, build, output |
| Ruby | Gemfile with app.rb, main.rb or server.rb | bundle exec ruby <file> |
Rust
Compilation is done in rust:1-alpine, or in the version fixed by rust-toolchain. The final image is an Alpine 3.21 with the binary. The binary name comes from [package] name or the first [[bin]] in Cargo.toml. In a workspace, it is the first member that has a src/main.rs. A crate with no binary is not detected.
Axum, Actix Web, Warp, Poem, Salvo, Tide and Tonic are recognized. Rocket gets ROCKET_ADDRESS=0.0.0.0 and ROCKET_PORT=$PORT. Loco starts with ./server start --binding 0.0.0.0 --port $PORT.
Java and Kotlin
The build uses Maven (maven:3.9-eclipse-temurin-<N>-alpine) or Gradle (gradle:jdk<N>-alpine), with the mvnw and gradlew wrappers if they exist. The final image is an eclipse-temurin:<N>-jre-alpine JRE. The Java version is read from the build file and rounded to 8, 11, 17, 21 or 25. With no indication, it is Java 21.
| Framework | Detected by | Start |
|---|---|---|
| Spring Boot | spring-boot in the build file | java -jar /app/app.jar --server.port=$PORT |
| Quarkus | quarkus in the build file | java -Dquarkus.http.port=$PORT -jar /app/quarkus-run.jar |
| Micronaut | micronaut in the build file | java -jar /app/app.jar, with MICRONAUT_SERVER_PORT=$PORT |
| Ktor, Vert.x, Javalin, Dropwizard | matching dependency | java -jar /app/app.jar (the application must read PORT) |
| Java, Kotlin | pom.xml or build.gradle* | java -jar /app/app.jar |
The JVM is launched with -XX:MaxRAMPercentage=75.0: it uses at most 75% of the service's memory.
.NET
The build uses mcr.microsoft.com/dotnet/sdk:<version>-alpine (version from <TargetFramework>, 8.0 by default) and dotnet publish. ASP.NET Core and Blazor Server start with dotnet <assembly>.dll with ASPNETCORE_URLS=http://0.0.0.0:$PORT. Blazor WebAssembly is served as a static site. Worker services, C# and F# console applications start with dotnet <assembly>.dll.
.NET runs in invariant globalization mode (without ICU). An application that depends on regional cultures needs a Dockerfile.
Elixir, Gleam and Deno
| Framework | Detected by | Start |
|---|---|---|
| Phoenix | phoenix dependency | mix phx.server, with MIX_ENV=prod |
| Plug, Elixir | mix.exs | mix run --no-halt |
| Gleam | gleam.toml | gleam export erlang-shipment, run on Erlang 28 |
| Fresh | deno.json that mentions fresh | deno task build, then deno task start |
| Oak, Deno | deno.json or deno.jsonc | deno task start if the task exists, otherwise deno run -A <file> (main.ts, mod.ts, server.ts) |
Other languages
| Language | Entries recognized | Detected by |
|---|---|---|
| Crystal | Crystal, Kemal, Lucky, Amber | shard.yml |
| Nim | Nim, Jester, Prologue | a *.nimble file with bin |
| Zig | Zig | build.zig |
| Lua | Lua | main.lua, app.lua, server.lua |
| Perl | Perl, Mojolicious, Dancer2, Plack | cpanfile, Makefile.PL, app.psgi |
| R | R, Shiny, Plumber | app.R, plumber.R, main.R |
| Julia | Julia, Genie, Oxygen.jl | Project.toml |
| Haskell | Haskell, Yesod, Servant, Scotty | a *.cabal file with an executable |
| Clojure | Clojure, Ring | project.clj (Leiningen) |
| D | D, vibe.d | dub.json or dub.sdl |
| Racket, Guile, Common Lisp, Tcl | scripts | main.rkt, main.scm, main.lisp, main.tcl |
| C, C++ | Make, CMake | Makefile or CMakeLists.txt, with a mandatory Procfile |
| Sites | Zola, mdBook | config.toml with base_url and content/, or book.toml |
What auto build does not support
| Case | Reason | Solution |
|---|---|---|
| Dart and Flutter, Swift, Scala (sbt), Groovy, OCaml, Erlang with rebar3 | No usable Alpine image | Dockerfile |
| Subfolder of a monorepo | Only the root is analyzed | Dockerfile at the root |
| Playwright | No browsers for Alpine | Puppeteer (Chromium is added automatically) or Debian Dockerfile |
| TensorFlow, PyTorch | No precompiled packages for Alpine | Debian Dockerfile |
opencv-python | Tied to glibc | opencv-python-headless |
railpack.json | File ignored, with a warning in the log | Dockerfile, or service settings |
Overriding what detection chose
Three ways, from lightest to most complete.
- The service's start command, in its settings, replaces the image's without touching the repository (Custom start command).
- A
Procfileat the root, with aweb:line, replaces the detected start command for all languages except Node.js. It is mandatory for C and C++.
web: gunicorn myapp.wsgi --bind 0.0.0.0:$PORT
- The Dockerfile build lets you write the entire build (Docker).
For Node.js, the start script in package.json plays the role of the Procfile.
Common errors
| Symptom | Cause | What to do |
|---|---|---|
| "Framework not detected" | No rule matches and no Dockerfile | Add a Dockerfile or a Procfile |
| Wrong framework chosen | Leftover dependency in package.json (an express forgotten after a migration) | Remove the dependency, or define a start script |
| Build succeeds, service does not respond | The application listens on localhost or on a port other than PORT | Listen on 0.0.0.0:$PORT (Web applications) |
Cannot find module 'dist/main.js' | The build script does not produce the expected output | Fix the build output or define a start script |
| 404 error when reloading a page of a single-page application | The site is served without a fallback to index.html | Switch the service to the Static site nature |
| Install refused, lock file | File missing or out of date with package.json | Regenerate it locally and commit it |
A framework is missing from this list: report it on Discord (new window) or through a support ticket.
Updated on