添加docker镜像打包支持

This commit is contained in:
fish 2019-12-11 13:50:52 +08:00
parent 4c9068c191
commit 374c050ea2
1 changed files with 11 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:latest
#国内代理加速
ENV GOPROXY=https://goproxy.cn
WORKDIR $GOPATH/src/github.com/smartoilets/gateway
COPY . $GOPATH/src/github.com/smartoilets/gateway
RUN go build -o ygw *.go
EXPOSE 10086
ENTRYPOINT ["./ygw"]