protected function formatRunCommand(array $commands)
    {
        $last = end($commands);

        return 'RUN ' . implode("\r\n  && ", array_map(
            function ($value) use ($last) {
                return $last !== $value ? "{$value} \\" : $value;
            },
            $commands
        ));
    }