File tree Expand file tree Collapse file tree
docker/transformers-doc-builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ LABEL maintainer="Hugging Face"
44RUN apt update
55RUN 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+
812RUN 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
1721RUN 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
You can’t perform that action at this time.
0 commit comments