Core: override docroot with memcpy()

Signed-off-by: Eduardo Silva <eduardo@monkey.io>