Refactor Dockerfile generation on golang
Refactor Dockerfile generation on golang

We make the Dockerfile logic consistent across all of the platforms
in prep for further cleanup later in the series.  No logic changes
are introduced to the resulting outputs, only the manner in which
they are generated.

Change-Id: Iebda8b3bf5211fd829b2f5ea8fa3af15bedd6544
Signed-off-by: Greg Haskins <640d9fe47775e6723f0355b7315e38f7d98d3539@gmail.com>

blockc/fabric,stemlending/fabric,bmos299/fabric,king3000/fabric,magg/fabric,chrisguoado/fabric,chrisguoado/fabric,binhn/fabric,bmos299/fabric,tkuhrt/fabric,thakkarparth007/fabric,rameshbabu79/fabric,manish-sethi/fabric-sidedb,blockc/fabric,kchristidis/fabric,cophey/fabric,mqshen/fabric,ibmmark/fabric,ckeyer/fabric,rameshthoomu/fabric,stemlending/fabric,jimthematrix/fabric,masterDev1985/fabric,cophey/fabric,rameshbabu79/fabric,king3000/fabric,cophey/fabric,stemlending/fabric,mqshen/fabric,ibmmark/fabric,phariel/fabric,mqshen/fabric,lukehuangch/fabric,tkuhrt/fabric,mqshen/fabric,ibmmark/fabric,cophey/fabric,magg/fabric,ibmmark/fabric,bmos299/fabric,magg/fabric,cophey/fabric,bmos299/fabric,kchristidis/fabric,magg/fabric,manish-sethi/fabric-sidedb,rameshthoomu/fabric,ibmmark/fabric,phariel/fabric,ckeyer/fabric,king3000/fabric,tkuhrt/fabric,thakkarparth007/fabric,tkuhrt/fabric,xixuejia/fabric,mffrench/fabric,tkuhrt/fabric,mffrench/fabric,mffrench/fabric,mffrench/fabric,mffrench/fabric,Ryan--Yang/fabric,cophey/fabric,phariel/fabric,muralisrini/fabric,lukehuangch/fabric,Ryan--Yang/fabric,masterDev1985/fabric,thakkarparth007/fabric,muralisrini/fabric,chrisguoado/fabric,magg/fabric,Ryan--Yang/fabric,rameshthoomu/fabric,chrisguoado/fabric,king3000/fabric,mffrench/fabric,phariel/fabric,blockc/fabric,blockc/fabric,mqshen/fabric,phariel/fabric,manish-sethi/fabric-sidedb,magg/fabric,rameshbabu79/fabric,muralisrini/fabric,hyperledger/fabric,ckeyer/fabric,kchristidis/fabric,kchristidis/fabric,xixuejia/fabric,Ryan--Yang/fabric,ckeyer/fabric,stemlending/fabric,jimthematrix/fabric,lukehuangch/fabric,thakkarparth007/fabric,king3000/fabric,blockc/fabric,ckeyer/fabric,chrisguoado/fabric,hyperledger/fabric,bmos299/fabric,kchristidis/fabric,xixuejia/fabric,Ryan--Yang/fabric,manish-sethi/fabric-sidedb,thakkarparth007/fabric,mqshen/fabric,masterDev1985/fabric,masterDev1985/fabric,thakkarparth007/fabric,lukehuangch/fabric,phariel/fabric,ibmmark/fabric,bmos299/fabric,bmos299/fabric,magg/fabric,manish-sethi/fabric,rameshthoomu/fabric,tkuhrt/fabric,king3000/fabric,ckeyer/fabric,lukehuangch/fabric,binhn/fabric,ckeyer/fabric,rameshthoomu/fabric,blockc/fabric,manish-sethi/fabric,kchristidis/fabric,tkuhrt/fabric,lukehuangch/fabric,binhn/fabric,chrisguoado/fabric,cophey/fabric,Ryan--Yang/fabric,masterDev1985/fabric,phariel/fabric,mffrench/fabric,mqshen/fabric,Ryan--Yang/fabric,rameshbabu79/fabric,thakkarparth007/fabric,lukehuangch/fabric,king3000/fabric,chrisguoado/fabric,rameshthoomu/fabric,blockc/fabric,rameshthoomu/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,rameshbabu79/fabric,kchristidis/fabric,manish-sethi/fabric-sidedb,ibmmark/fabric