Build Configuration

Configure builds in Canvas UI’s “Git” tab:
  • Nixpacks: Set install (npm install), build (npm run build), and start (npm run start) commands.
  • Dockerfiles: Specify path (e.g., ./Dockerfile), context (e.g., .), and build stage (e.g., production).

Dockerfiles

Example Dockerfile for Node.js:
FROM node:18
WORKDIR /app
COPY . .
RUN npm install
CMD ["npm", "run", "start"]
Set custom start command in Canvas UI (e.g., npm run start).

Nixpacks

Auto-detect build settings for Node.js, Python, etc.