Skip to content

Commit

Permalink
add arm64 binaries for duckdb
Browse files Browse the repository at this point in the history
  • Loading branch information
mythmon committed Apr 12, 2024
1 parent 81cf463 commit 895bfe3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ RUN --mount=type=cache,target=/var/cache/apt,id=framework-runtime-r \

# == duckdb ======================
FROM base AS duckdb
RUN cd $(mktemp -d) \
&& wget https://github.com/duckdb/duckdb/releases/download/v0.10.1/duckdb_cli-linux-amd64.zip \
&& unzip duckdb_cli-linux-amd64.zip \
&& install -m 0755 duckdb /usr/bin/duckdb
RUN cd $(mktemp -d); \
dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch##*-}" in \
amd64) duckdbArch='amd64' ;; \
arm64) duckdbArch='aarch64' ;; \
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
esac; \
wget https://github.com/duckdb/duckdb/releases/download/v0.10.1/duckdb_cli-linux-${duckdbArch}.zip; \
unzip duckdb_cli-linux-${duckdbArch}.zip; \
install -m 0755 duckdb /usr/bin/duckdb;

# == rust ========================
FROM base AS rust
Expand Down

0 comments on commit 895bfe3

Please sign in to comment.