Can i pull docker frappe image and copy src to my local then custom and push to my registry

i want to production my app use docker. can i pull offical image of frappe from docker hub then copy src code to my local. Then use this custom src to push into my registry to other people use it