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.
This commit is contained in:
denshooter
2026-02-22 01:43:51 +01:00
parent 6148e5e9ac
commit 48411e432a
+3 -3
View File
@@ -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