diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000..191381ee74dec --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a6537be6e57f2..0e9c3f241a27d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY . /go/src/github.com/pingcap/tidb RUN cd /go/src/github.com/pingcap/tidb && \ make godep && make server && \ cp tidb-server/tidb-server /go/bin/ && \ - rm -rf /go/src/* + make clean EXPOSE 4000