From 8ea5431f5775aebbd92fe2ce2ad146047032edbc Mon Sep 17 00:00:00 2001 From: DuodenumL Date: Tue, 15 Mar 2022 16:25:52 +0800 Subject: [PATCH] fix issue of building docker image (#563) --- .github/workflows/dockerimage.yml | 2 ++ Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index b21bffa2c..f8787d985 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -13,6 +13,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: build and push to github packages uses: docker/build-push-action@v1 diff --git a/Dockerfile b/Dockerfile index 6e881f0f5..390c8b3df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:alpine AS BUILD # make binary RUN apk add --no-cache build-base musl-dev git curl make cmake -RUN git clone https://github.com/projecteru2/core.git /go/src/github.com/projecteru2/core +COPY . /go/src/github.com/projecteru2/core WORKDIR /go/src/github.com/projecteru2/core ARG KEEP_SYMBOL RUN make build && ./eru-core --version