golang中windows交叉编译
env GOOS=linux GOARCH=amd64 go build .
打包镜像
FROM alpineMAINTAINER "congge"ADD ./casino_niuniu /usr/local/casino_niuniu/bin/casino_niuniu ADD ./templates /usr/loca/lcasino_niuniu/bin/templates ADD ./public /usr/local/casino_niuniu/bin/publicRUN cd /usr/local/casino_niuniu && mkdir conf logWORKDIR /usr/local/casino_niuniu/binCMD ./casino_niuniu
Docker 中访问私人仓库
winpty docker login xxxxxxx
查看两个文件的Dockerfile制作镜像过程是否相同
docker history --no-trunc 5fb83f9048c8