Skip to content

Commit 0a9e134

Browse files
hzmangelshenli
authored andcommitted
Dockerfile: Fix error while running make server (pingcap#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.
1 parent a75f677 commit 0a9e134

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
.git

0 commit comments

Comments
 (0)