Fix Docker build: Specify libvips tag explicitly for git clone
- Changed git clone --branch to git clone --branch refs/tags/ to correctly fetch the libvips version by tag, resolving the 'Remote branch not found' error.
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ 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 v${LIBVIPS_VERSION} --depth 1 https://github.com/libvips/libvips.git \
|
RUN git clone --branch refs/tags/v${LIBVIPS_VERSION} --depth 1 https://github.com/libvips/libvips.git \
|
||||||
&& cd libvips \
|
&& cd libvips \
|
||||||
&& meson setup build --prefix=/usr --buildtype=release \
|
&& meson setup build --prefix=/usr --buildtype=release \
|
||||||
&& ninja -C build \
|
&& ninja -C build \
|
||||||
|
|||||||
Reference in New Issue
Block a user