Skip to content

Commit 9f1da1b

Browse files
committed
Fix isponsorblocktv build by adding gcc and musl-dev
The build was failing because aiohttp (required by iSponsorBlockTV) needs to compile C extensions on Alpine Linux. Changes: - Add gcc and musl-dev temporarily during pip install - Remove build dependencies after install to keep image small - Match upstream iSponsorBlockTV's build approach exactly This follows the same pattern used by upstream iSponsorBlockTV Dockerfile. Fixes: https://github.com/bertybuttface/addons/actions/runs/20126049902
1 parent 31c5a92 commit 9f1da1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

isponsorblocktv/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON_DOWNLOADS=0
1212
WORKDIR /app
1313
RUN git clone --branch ${ISPONSORBLOCKTV_VERSION} --depth 1 https://github.com/dmunozv04/iSponsorBlockTV /repo
1414
RUN cp -r /repo/src/* /app/ && cp /repo/requirements.txt /app/
15-
RUN uv pip install --system --index-strategy unsafe-best-match -r requirements.txt
15+
# Install build dependencies temporarily (needed for aiohttp), matching upstream approach
16+
RUN apk add --no-cache gcc musl-dev \
17+
&& uv pip install --system --index-strategy unsafe-best-match -r requirements.txt \
18+
&& apk del gcc musl-dev
1619
# TODO: we need the below as UV_COMPILE_BYTECODE=1 is not working as expected, remove once fixed
1720
RUN python3 -m compileall -b -f . && \
1821
find . -name "*.py" -type f -delete

0 commit comments

Comments
 (0)