From cc4d72061f56e5b8f9b82a19a94b4448d57d00d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 8 May 2019 14:25:09 +0300 Subject: [PATCH] docker: add git history back to support commit date in version --- .dockerignore | 4 ---- Dockerfile | 2 +- Dockerfile.alltools | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.dockerignore b/.dockerignore index d280741c60..0c013d18b1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,3 @@ -**/.git -.git -!.git/HEAD -!.git/refs/heads **/*_test.go build/_workspace diff --git a/Dockerfile b/Dockerfile index 4b205d6492..c766576a8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Build Geth in a stock Go builder container FROM golang:1.12-alpine as builder -RUN apk add --no-cache make gcc musl-dev linux-headers +RUN apk add --no-cache make gcc musl-dev linux-headers git ADD . /go-ethereum RUN cd /go-ethereum && make geth diff --git a/Dockerfile.alltools b/Dockerfile.alltools index 4a4a26f8bc..a4adba9d5b 100644 --- a/Dockerfile.alltools +++ b/Dockerfile.alltools @@ -1,7 +1,7 @@ # Build Geth in a stock Go builder container FROM golang:1.12-alpine as builder -RUN apk add --no-cache make gcc musl-dev linux-headers +RUN apk add --no-cache make gcc musl-dev linux-headers git ADD . /go-ethereum RUN cd /go-ethereum && make all