From fb1541f8e30f5b391e95dbe7cbda2e3b531c0265 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 13 Nov 2024 10:46:44 +0300 Subject: [PATCH] heic-clang-debian-pkg-config --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3d88afe..08999ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,13 @@ FROM rust:slim-bookworm AS build # Install necessary packages RUN apt-get update && \ apt-get install -y git pkg-config make g++ libssl-dev libheif-dev libheif1 libtiff-dev \ - clang libclang-dev && \ + clang libclang-dev pkg-config && \ rustup target add x86_64-unknown-linux-gnu # Set environment variables for libclang ENV LIBCLANG_PATH=/usr/lib/llvm-14/lib ENV BINDGEN_EXTRA_CLANG_ARGS="-I/usr/include" +ENV PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig # Create a new Rust binary project RUN USER=root cargo new --bin quoter