feat: add download_spatial target and DuckDB spatial extension handling

This commit is contained in:
begoniezhao
2026-01-05 14:52:11 +08:00
parent f07259a423
commit 1b0edccfc4
5 changed files with 41 additions and 23 deletions
+2
View File
@@ -42,6 +42,7 @@ ENV BUILD_TIME=${BUILD_TIME_ARG}
ENV GO_VERSION=${GO_VERSION_ARG}
# Build the application with version info
RUN --mount=type=cache,target=/go/pkg/mod make download_spatial
RUN --mount=type=cache,target=/go/pkg/mod make build-prod
RUN --mount=type=cache,target=/go/pkg/mod cp -r /go/pkg/mod/github.com/yanyiwu/ /app/yanyiwu/
@@ -85,6 +86,7 @@ COPY --from=builder /app/config ./config
COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/migrations ./migrations
COPY --from=builder /app/dataset/samples ./dataset/samples
COPY --from=builder /root/.duckdb /home/appuser/.duckdb
COPY --from=builder /app/WeKnora .
# Make scripts executable