Increase the memory limit to update .php.ini file
If you have access to your php.ini file or can create one in the root, you can globally increase your allocated memory.
;adjust memory limit
memory_limit = 1G
max_execution_time = 36000
max_input_time = 36000
If you not want to update .php.ini file then use below command
php -dmemory_limit=6G bin/magento setup:static-content:deploy