heic-clang-debian-pkg-config
Some checks failed
deploy / deploy (push) Failing after 3m9s

This commit is contained in:
Untone 2024-11-13 10:46:44 +03:00
parent 3906695fcc
commit fb1541f8e3

View File

@ -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