Add curl-impersonate for ani-cli v5

This commit is contained in:
Codex
2026-08-01 17:21:16 +02:00
parent 8c62060d4a
commit 141dcd9c70
6 changed files with 33 additions and 3 deletions
+9
View File
@@ -1,3 +1,5 @@
FROM lexiforest/curl-impersonate:latest AS curl-impersonate
FROM python:3.12-slim-bookworm
ARG ANI_CLI=https://github.com/pystardust/ani-cli.git
@@ -22,6 +24,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
aria2 \
bash \
botan \
ca-certificates \
curl \
@@ -32,6 +35,7 @@ RUN apt-get update \
grep \
libxml2-dev \
libxslt1-dev \
libstdc++6 \
openssl \
patch \
python3.11 \
@@ -41,6 +45,11 @@ RUN apt-get update \
util-linux \
&& rm -rf /var/lib/apt/lists/*
COPY --from=curl-impersonate /usr/local /usr/local
RUN curl_firefox135 --version \
&& curl_chrome136 --version
RUN git clone --depth 1 --branch "${ANI_CLI_BRANCH}" "${ANI_CLI}" /tmp/ani-cli-src \
&& install -m 0755 /tmp/ani-cli-src/ani-cli /usr/local/bin/ani-cli \
&& ani_cli_raw_repo="$(printf '%s' "${ANI_CLI}" | sed -E 's#^https://github.com/##; s#\\.git$##')" \