Skip to content

Commit df557a2

Browse files
authored
fix: hf-doc-builder insallation was failing (#45225)
* the dev extra now installs hf-doc-builder as well * use main
1 parent 82a73ad commit df557a2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docker/transformers-doc-builder/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ LABEL maintainer="Hugging Face"
44
RUN apt update
55
RUN git clone https://github.com/huggingface/transformers
66

7-
RUN python3 -m pip install --no-cache-dir --upgrade pip && python3 -m pip install --no-cache-dir git+https://github.com/huggingface/doc-builder ./transformers[dev]
7+
RUN python3 -m pip install --no-cache-dir --upgrade pip && python3 -m pip install --no-cache-dir ./transformers[dev]
8+
9+
# We want to use the latest doc-builder when building docs
10+
RUN python3 -m pip install -U git+https://github.com/huggingface/doc-builder.git@main
11+
812
RUN apt-get -y update && apt-get install -y libsndfile1-dev && apt install -y tesseract-ocr
913

1014
# Torch needs to be installed before deepspeed
@@ -15,4 +19,4 @@ RUN python3 -m pip install -U "itsdangerous<2.1.0"
1519

1620
# Test if the image could successfully build the doc. before publishing the image
1721
RUN doc-builder build transformers transformers/docs/source/en --build_dir doc-build-dev --notebook_dir notebooks/transformers_doc --clean
18-
RUN rm -rf doc-build-dev
22+
RUN rm -rf doc-build-dev

0 commit comments

Comments
 (0)