Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN apt-get update && apt-get install -y \
RUN mkdir -p /tmp/duckdb && \
cd /tmp/duckdb && \
if [ "${TARGETARCH}" = "arm64" ]; then \
wget https://github.com/duckdb/duckdb/releases/download/v0.10.1/libduckdb-linux-aarch64.zip; \
wget https://github.com/duckdb/duckdb/releases/download/v0.10.1/libduckdb-linux-aarch64.zip; \
else \
wget https://github.com/duckdb/duckdb/releases/download/v0.10.1/libduckdb-linux-amd64.zip; \
wget https://github.com/duckdb/duckdb/releases/download/v0.10.1/libduckdb-linux-amd64.zip; \
fi && \
unzip libduckdb-*.zip && \
cp libduckdb.so /usr/lib/ && \
Expand All @@ -38,7 +38,7 @@ COPY . .

RUN go mod download
RUN go mod vendor
RUN GO111MODULE=on GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o ./bin/sql-execution-action -mod=vendor main.go
RUN GO111MODULE=on GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -tags=test -o ./bin/sql-execution-action -mod=vendor main.go

FROM gcr.io/distroless/cc-debian12:latest
COPY --from=builder /go/src/github.com/nandemo-ya/sql-execution-action/bin/sql-execution-action /usr/local/bin/
Expand Down
Loading