From fb6603b29cbd0a4fd3009e5403a0067868d25651 Mon Sep 17 00:00:00 2001 From: fish Date: Tue, 17 Dec 2019 16:18:53 +0800 Subject: [PATCH] =?UTF-8?q?gateway=20docker=E5=8C=96=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE,=E5=88=A0=E9=99=A4=E6=BA=90=E7=A0=81?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3304ffc..3769173 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file