Skip to content

Commit 3239182

Browse files
committed
Fix Docker build with Eyrie dependency
1 parent c49476c commit 3239182

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ RUN apk add --no-cache git ca-certificates tzdata
55

66
WORKDIR /build
77

8+
# Clone eyrie (unpublished dependency with local-only packages).
9+
RUN git clone --depth=1 https://github.com/GrayCodeAI/eyrie.git /eyrie
10+
811
COPY go.mod go.sum ./
912
RUN go mod download
1013

1114
COPY . .
1215
# Add replace after source copy so it doesn't get overwritten
13-
RUN echo "" >> go.mod && echo "replace github.com/GrayCodeAI/eyrie => ./external/eyrie" >> go.mod && go mod tidy
16+
RUN echo "" >> go.mod && echo "replace github.com/GrayCodeAI/eyrie => /eyrie" >> go.mod && go mod tidy
1417

1518
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -mod=mod \
1619
-ldflags="-s -w -X main.Version=$(git describe --tags --always 2>/dev/null || echo dev)" \

0 commit comments

Comments
 (0)