Skip to content

Commit 2556452

Browse files
committed
fix(docker): symlink GNU diff to override BusyBox on Alpine
BusyBox's diff at /bin/diff doesn't support --version flag required by libvpx configure. GNU diffutils installs to /usr/bin/diff but BusyBox takes precedence in PATH. Create symlink to ensure GNU diff is used.
1 parent 732c08f commit 2556452

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/Dockerfile.linux-musl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ RUN apk add --no-cache \
4848
musl-dev \
4949
zlib-static
5050

51+
# Ensure GNU diff takes precedence over BusyBox version
52+
# libvpx configure requires `diff --version` which BusyBox doesn't support
53+
RUN ln -sf /usr/bin/diff /bin/diff
54+
5155
# Create build user
5256
RUN adduser -D -s /bin/sh builder
5357
WORKDIR /build

0 commit comments

Comments
 (0)