This commit is contained in:
parent
3906695fcc
commit
fb1541f8e3
|
@ -4,12 +4,13 @@ FROM rust:slim-bookworm AS build
|
||||||
# Install necessary packages
|
# Install necessary packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y git pkg-config make g++ libssl-dev libheif-dev libheif1 libtiff-dev \
|
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
|
rustup target add x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
# Set environment variables for libclang
|
# Set environment variables for libclang
|
||||||
ENV LIBCLANG_PATH=/usr/lib/llvm-14/lib
|
ENV LIBCLANG_PATH=/usr/lib/llvm-14/lib
|
||||||
ENV BINDGEN_EXTRA_CLANG_ARGS="-I/usr/include"
|
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
|
# Create a new Rust binary project
|
||||||
RUN USER=root cargo new --bin quoter
|
RUN USER=root cargo new --bin quoter
|
||||||
|
|
Loading…
Reference in New Issue
Block a user