Skip to content

Commit 2929414

Browse files
committed
ai: indexer docker build
1 parent 92513ad commit 2929414

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \
105105
--mount=type=cache,target=/root/.cache/go-build \
106106
CGO_ENABLED=1 go build -ldflags "${GO_LDFLAGS}" -o ${BIN_DIR}/doublezero-ai-slack-bot tools/dz-ai/cmd/slack-bot/main.go
107107

108+
# Build lake-indexer (golang)
109+
RUN --mount=type=cache,target=/go/pkg/mod \
110+
--mount=type=cache,target=/root/.cache/go-build \
111+
CGO_ENABLED=1 go build -ldflags "${GO_LDFLAGS}" -o ${BIN_DIR}/doublezero-lake-indexer tools/dz-ai/cmd/data-indexer/main.go
112+
113+
108114
# Force COPY in later stages to always copy the binaries, even if they appear to be the same.
109115
ARG CACHE_BUSTER=1
110116
RUN echo "$CACHE_BUSTER" > ${BIN_DIR}/.cache-buster && \

0 commit comments

Comments
 (0)