diff --git a/Dockerfile b/Dockerfile index e8e9eb4..22b6e15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,14 +29,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ARG LIBVIPS_VERSION=8.16.2 WORKDIR /tmp -RUN git clone --branch refs/tags/v${LIBVIPS_VERSION} --depth 1 https://github.com/libvips/libvips.git \ - && cd libvips \ +RUN curl -L https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz | tar xz --strip-components=1 \ + && cd vips-${LIBVIPS_VERSION} \ && meson setup build --prefix=/usr --buildtype=release \ && ninja -C build \ && ninja -C build install \ && ldconfig \ && cd / \ - && rm -rf /tmp/libvips + && rm -rf /tmp/vips-${LIBVIPS_VERSION} # Stage 2: Build the Next.js app FROM node:22-bullseye-slim AS builder