AnySites

// BUILD CONFIGURATION

Build and Start Commands

When these fields are actually used — and when a Dockerfile makes them irrelevant.

The Build command and Start command fields you set when creating a project are only used on one specific path: when your repository has no `Dockerfile` and AnySites is generating one for you (which only happens for a Node.js-detected project — see Framework Auto-Detection).

If your repository has its own Dockerfile, it's used exactly as committed, and these two fields are stored but have no effect on the build — the Dockerfile's RUN/CMD instructions are the actual source of truth. Don't rely on changing them to affect a Dockerfile-based build.

When they do apply, Build command runs after dependency install and before the start command (e.g. npm run build); Start command becomes the container's CMD (e.g. npm start).

Related documentation