This commit is contained in:
parent
3906695fcc
commit
fb1541f8e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user