Skip to content

Commit 8ea5431

Browse files
authored
fix issue of building docker image (#563)
1 parent 47a4a04 commit 8ea5431

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/dockerimage.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: checkout
1515
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
1618

1719
- name: build and push to github packages
1820
uses: docker/build-push-action@v1

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM golang:alpine AS BUILD
22

33
# make binary
44
RUN apk add --no-cache build-base musl-dev git curl make cmake
5-
RUN git clone https://github.com/projecteru2/core.git /go/src/github.com/projecteru2/core
5+
COPY . /go/src/github.com/projecteru2/core
66
WORKDIR /go/src/github.com/projecteru2/core
77
ARG KEEP_SYMBOL
88
RUN make build && ./eru-core --version

0 commit comments

Comments
 (0)