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