From 5061b9c28746f90d3b25453d50761a9841fb635c Mon Sep 17 00:00:00 2001 From: denshooter Date: Sun, 22 Feb 2026 01:45:47 +0100 Subject: [PATCH] Fix Docker build: Use git archive --remote for libvips source - Replaced curl download with git archive --remote to fetch libvips source, bypassing previous download issues. - Adjusted tar extraction and directory navigation to correctly handle the output of git archive. --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5503c7a..2ddf4f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,15 +30,19 @@ ARG LIBVIPS_VERSION=8.16.2 WORKDIR /tmp RUN set -eux; \ - curl -L -o vips.tar.gz https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz; \ - tar xz --strip-components=1 -f vips.tar.gz; \ + mkdir libvips_src; \ + cd libvips_src; \ + git archive --format=tar --remote=https://github.com/libvips/libvips.git v${LIBVIPS_VERSION} | tar x; \ + cd ../; \ + mv libvips_src/* .; \ + rmdir libvips_src; \ cd vips-${LIBVIPS_VERSION}; \ meson setup build --prefix=/usr --buildtype=release; \ ninja -C build; \ ninja -C build install; \ ldconfig; \ cd /; \ - rm -rf /tmp/vips-${LIBVIPS_VERSION} /tmp/vips.tar.gz + rm -rf /tmp/vips-${LIBVIPS_VERSION} # Stage 2: Build the Next.js app FROM node:22-bullseye-slim AS builder