heic-sys3
This commit is contained in:
parent
acbe5be8aa
commit
566379042d
|
@ -4,13 +4,15 @@ 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 pkg-config && \
|
||||
clang libclang-dev pkg-config libde265-dev libx265-dev libjpeg-dev && \
|
||||
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
|
||||
ENV PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
|
||||
ENV PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
|
||||
|
||||
# Create a new Rust binary project
|
||||
RUN USER=root cargo new --bin quoter
|
||||
|
@ -45,6 +47,9 @@ RUN apt-get update && \
|
|||
libssl3 \
|
||||
libheif1 \
|
||||
libtiff6 \
|
||||
libde265-0 \
|
||||
libx265-199 \
|
||||
libjpeg62-turbo \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy the compiled binary from the build stage
|
||||
|
|
Loading…
Reference in New Issue
Block a user