添加docker镜像打包支持
This commit is contained in:
parent
4c9068c191
commit
374c050ea2
|
@ -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"]
|
Loading…
Reference in New Issue