From 0a9e13439439a472c5a57deb493217fdb2f0f641 Mon Sep 17 00:00:00 2001 From: Hu Ziming Date: Thu, 30 Jun 2016 10:27:53 +0800 Subject: [PATCH] Dockerfile: Fix error while running `make server` (#1361) The `LDFLAGS` in Makefile tries to get git commit hash while building server component, but default COPY command does not put *.git* directory into docker container, which causes the fatal error while executing command `git rev-parse HEAD`. This fix remove *.git* directory from *.dockerignore* file, then the git command can be executed successfully in container. --- .dockerignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 191381ee74dec..e69de29bb2d1d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +0,0 @@ -.git \ No newline at end of file