gateway docker化完善配置,删除源码以及不必要的内容

This commit is contained in:
fish 2019-12-17 16:18:53 +08:00
parent 374c050ea2
commit fb6603b29c
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ 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
#删除不必要的内容
RUN rm -f *.go && rm -f Dockerfile && rm -f README.md
EXPOSE 10086
ENTRYPOINT ["./ygw"]