| 1 |
FROM ubuntu:22.04@sha256:962f6cadeae0ea6284001009daa4cc9a8c37e75d1f5191cf0eb83fe565b63dd7 |
| 2 |
|
| 3 |
RUN apt-get update && \ |
| 4 |
apt-get install -y autoconf autopoint binutils clang cmake gettext git gperf libc++-dev libc++abi-dev libtool locales make nasm pkg-config po4a && \ |
| 5 |
locale-gen en_US.UTF-8 |
| 6 |
|
| 7 |
RUN mkdir -p mkdir /ImageMagick/dependencies |
| 8 |
WORKDIR /ImageMagick/dependencies |
| 9 |
|
| 10 |
RUN git clone --depth 1 https://gitlab.com/libtiff/libtiff |
| 11 |
RUN git clone --depth 1 https://github.com/strukturag/libde265 |
| 12 |
RUN git clone --depth 1 https://github.com/strukturag/libheif |
| 13 |
RUN git clone --depth 1 https://github.com/uclouvain/openjpeg |
| 14 |
RUN git clone --depth 1 https://github.com/webmproject/libwebp |
| 15 |
RUN git clone --depth 1 https://github.com/madler/zlib |
| 16 |
RUN git clone --depth 1 https://github.com/ebiggers/libdeflate |
| 17 |
RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo |
| 18 |
RUN git clone --depth 1 https://github.com/tukaani-project/xz |
| 19 |
RUN git clone --depth 1 https://github.com/libraw/libraw |
| 20 |
RUN git clone --depth 1 https://github.com/pnggroup/libpng |
| 21 |
RUN git clone --depth 1 https://github.com/mm2/Little-CMS |
| 22 |
RUN git clone --depth 1 https://github.com/freetype/freetype |
| 23 |
RUN git clone --depth 1 https://gitlab.com/federicomenaquintero/bzip2.git |
| 24 |
RUN git clone --depth 1 --recursive https://github.com/libjxl/libjxl |
| 25 |
RUN git clone https://www.cl.cam.ac.uk/~mgk25/git/jbigkit # does not support shallow |
| 26 |
|
| 27 |
ADD oss-fuzz/build_dependencies.sh build_dependencies.sh |
| 28 |
|
| 29 |
ENV SRC=/ImageMagick/dependencies |
| 30 |
ENV WORK=/ImageMagick |
| 31 |
ENV PATH=$PATH:/ImageMagick/bin |
| 32 |
ENV CXX=clang++ |
| 33 |
ENV CC=clang |
| 34 |
ENV CFLAGS="-O1 -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope" |
| 35 |
ENV CXXFLAGS="-O1 -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope -stdlib=libc++" |
| 36 |
RUN ./build_dependencies.sh |