Add pkg-config

This commit is contained in:
Paul Campbell 2024-05-17 07:03:40 +01:00
parent b4a93ca669
commit d431f07784

View file

@ -3,13 +3,17 @@ FROM docker.io/rust:1.78.0-slim-bookworm
# nodejs - runtime used by forgejo/github actions
# curl - to download cargo-binstall
# clang-16 & mold - faster linkers for rust
RUN apt-get update && \
# pkg-config - required to compile some rust `-sys` packages
RUN apt-get update \
&& \
apt-get install -y \
--no-install-recommends \
nodejs=18.19.0+dfsg-6~deb12u1 \
curl=7.88.1-10+deb12u5 \
clang-16=1:16.0.6-15~deb12u1 \
mold=1.10.1+dfsg-1 && \
mold=1.10.1+dfsg-1 \
pkg-config=1.8.1-1 \
&& \
rm -r /var/lib/apt/lists/*
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \