BuildCommand constructor
BuildCommand()
Implementation
BuildCommand() {
argParser
..addOption(
'output',
abbr: 'o',
help: 'Bundle directory (default: build/server → build/server/bundle).',
)
..addFlag(
'with-cli',
negatable: false,
help: 'Also build bin/dartisan.dart into the same bundle.',
)
..addFlag(
'docker',
negatable: false,
help: 'Write Dockerfile and .dockerignore.',
)
..addFlag(
'distroless',
negatable: false,
help:
'With --docker: run on gcr.io/distroless/cc (no shell, no package '
'manager, non-root) instead of debian:bookworm-slim.',
)
..addFlag('no-compile', negatable: false, help: 'Skip the native build.')
..addFlag(
'sqlite',
defaultsTo: true,
help:
'Bundle the SQLite library. --no-sqlite leaves it out for '
'PostgreSQL and MySQL applications (smaller bundle); a server '
'that still uses SQLite then needs it from the OS.',
)
..addFlag(
'force',
negatable: false,
help:
'Overwrite an existing Dockerfile; build --no-sqlite even when '
'DB_CONNECTION is sqlite.',
);
}