Skip to content
Snippets Groups Projects
Unverified Commit 22ee0ee3 authored by Niaz Faridani-Rad's avatar Niaz Faridani-Rad Committed by GitHub
Browse files

Use lunar lobster ubuntu image

- python 3.12 bumped
- libjxl added
- libvips bumped
parent e6c41ce1
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:jammy FROM ubuntu:lunar
ARG TARGETPLATFORM ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
...@@ -51,6 +51,8 @@ RUN apt-get update && \ ...@@ -51,6 +51,8 @@ RUN apt-get update && \
pkg-config \ pkg-config \
rustc \ rustc \
libtinfo5 \ libtinfo5 \
libjxl-dev \
libvips-dev \
swig && \ swig && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
...@@ -59,7 +61,7 @@ RUN pip3 install --no-cache-dir torch torchvision --extra-index-url https://down ...@@ -59,7 +61,7 @@ RUN pip3 install --no-cache-dir torch torchvision --extra-index-url https://down
RUN pip3 install --no-cache-dir cmake==3.21.2 RUN pip3 install --no-cache-dir cmake==3.21.2
#Build and install libraw #Build and install libraw, supports more RAW image types
WORKDIR /tmp/builds WORKDIR /tmp/builds
RUN git clone https://github.com/LibRaw/LibRaw && \ RUN git clone https://github.com/LibRaw/LibRaw && \
cd LibRaw && \ cd LibRaw && \
...@@ -70,7 +72,7 @@ RUN git clone https://github.com/LibRaw/LibRaw && \ ...@@ -70,7 +72,7 @@ RUN git clone https://github.com/LibRaw/LibRaw && \
make install && \ make install && \
rm -rf /tmp/builds/* rm -rf /tmp/builds/*
#Build and install imagemagick #Build and install imagemagick to use current libraw
WORKDIR /tmp/builds WORKDIR /tmp/builds
ARG IMAGEMAGICK_VERSION=7.1.1-4 ARG IMAGEMAGICK_VERSION=7.1.1-4
RUN curl -SL https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz | tar -xJf- && \ RUN curl -SL https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz | tar -xJf- && \
...@@ -80,17 +82,6 @@ RUN curl -SL https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_ ...@@ -80,17 +82,6 @@ RUN curl -SL https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_
ldconfig /usr/local/lib && \ ldconfig /usr/local/lib && \
rm -rf /tmp/builds/* rm -rf /tmp/builds/*
# Build and install libvips
WORKDIR /tmp/builds
ARG VIPSVERSION=8.13.0
RUN curl -SL https://github.com/libvips/libvips/releases/download/v${VIPSVERSION}/vips-${VIPSVERSION}.tar.gz | tar -xz \
&& cd vips-${VIPSVERSION} \
&& ./configure \
&& make V=0 \
&& make install \
&& ldconfig \
&& rm -rf /tmp/builds/*
# Build and install dlib # Build and install dlib
# Compile it WITHOUT AVX and SSE4 instructions to ensure compatibility # Compile it WITHOUT AVX and SSE4 instructions to ensure compatibility
WORKDIR /tmp/builds WORKDIR /tmp/builds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment