From 48411e432af5fab16a49445e5776d2fe16ceb9bd Mon Sep 17 00:00:00 2001 From: denshooter Date: Sun, 22 Feb 2026 01:43:51 +0100 Subject: [PATCH] Fix Docker build: Download libvips tarball directly instead of git clone - Replaced 'git clone' with 'curl' to download and extract the libvips source tarball. This avoids persistent 'Remote branch not found' errors when cloning specific tags in the Docker environment. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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