gateway docker化完善配置,删除源码以及不必要的内容
This commit is contained in:
parent
374c050ea2
commit
fb6603b29c
|
@ -6,6 +6,8 @@ ENV GOPROXY=https://goproxy.cn
|
||||||
WORKDIR $GOPATH/src/github.com/smartoilets/gateway
|
WORKDIR $GOPATH/src/github.com/smartoilets/gateway
|
||||||
COPY . $GOPATH/src/github.com/smartoilets/gateway
|
COPY . $GOPATH/src/github.com/smartoilets/gateway
|
||||||
RUN go build -o ygw *.go
|
RUN go build -o ygw *.go
|
||||||
|
#删除不必要的内容
|
||||||
|
RUN rm -f *.go && rm -f Dockerfile && rm -f README.md
|
||||||
|
|
||||||
EXPOSE 10086
|
EXPOSE 10086
|
||||||
ENTRYPOINT ["./ygw"]
|
ENTRYPOINT ["./ygw"]
|
Loading…
Reference in New Issue