Add bindgen, clang & libs
Some checks failed
/ publish-docker (push) Has been cancelled
/ build (map[platform:linux/arm64 suffix:linux-arm64]) (push) Has been cancelled
/ publish-forgejo (push) Has been cancelled
/ build (map[platform:linux/amd64 suffix:linux-amd64]) (push) Has been cancelled

This commit is contained in:
asonix 2024-05-03 15:42:35 -05:00
parent 6f8bca16c7
commit 4d97a758b9
3 changed files with 13 additions and 2 deletions

View file

@ -3,11 +3,14 @@ FROM docker.io/node:20-bookworm
RUN \
mkdir -p /opt && \
apt-get update && \
apt-get install -y jq cmake
apt-get install -y jq
ENV \
PATH=/opt/minio-client:/opt/zig:/root/.cargo/bin:/root/.rustup/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
COPY --chmod=744 install-docker.sh /opt/install-build-tooling.sh
RUN bash /opt/install-build-tooling.sh
COPY --chmod=744 install-docker.sh /opt/install-docker.sh
RUN bash /opt/install-docker.sh

8
install-build-tooling.sh Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -xe
sudo apt-get -y install \
clang \
libclang-dev \
llvm-dev

View file

@ -22,4 +22,4 @@ rustup target add x86_64-unknown-linux-musl
rustup target add armv7-unknown-linux-musleabihf
rustup target add aarch64-unknown-linux-musl
yes | cargo binstall cargo-zigbuild
yes | cargo binstall bindgen-cli cargo-zigbuild