go 交叉编译
golang中windows交叉编译
env GOOS=linux GOARCH=amd64 go build .
打包镜像
FROM alpine MAINTAINER "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/public RUN cd /usr/local/casino_niuniu && mkdir conf log WORKDIR /usr/local/casino_niuniu/bin CMD ./casino_niuniu
Docker 中访问私人仓库
winpty docker login xxxxxxx
查看两个文件的Dockerfile制作镜像过程是否相同
docker history --no-trunc 5fb83f9048c8