runDockerDev method

Future<bool> runDockerDev()

Run the server locally with Docker

Implementation

Future<bool> runDockerDev() async {
  if (!config.createServer) return false;

  info('Running server in Docker (development)...');

  final int result = await _runner.runStreaming('docker', <String>[
    'run',
    '-p',
    '8080:8080',
    '-v',
    '$serverPath:/app',
    config.serverPackageName,
  ]);

  return result == 0;
}