Skip to content

Commit 54cdb42

Browse files
chore(python): fix docs build (#2086)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 36453c7 commit 54cdb42

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:52210e0e0559f5ea8c52be148b33504022e1faef4e95fbe4b32d68022af2fa7e
17-
# created: 2024-07-08T19:25:35.862283192Z
16+
digest: sha256:94bb690db96e6242b2567a4860a94d48fa48696d092e51b0884a1a2c0a79a407
17+
# created: 2024-07-31T14:52:44.926548819Z

.kokoro/docker/docs/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,18 @@ RUN tar -xvf Python-3.10.14.tgz
7272
RUN ./Python-3.10.14/configure --enable-optimizations
7373
RUN make altinstall
7474

75-
RUN python3.10 -m venv /venv
76-
ENV PATH /venv/bin:$PATH
75+
ENV PATH /usr/local/bin/python3.10:$PATH
7776

7877
###################### Install pip
7978
RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
80-
&& python3 /tmp/get-pip.py \
79+
&& python3.10 /tmp/get-pip.py \
8180
&& rm /tmp/get-pip.py
8281

8382
# Test pip
84-
RUN python3 -m pip
83+
RUN python3.10 -m pip
8584

8685
# Install build requirements
8786
COPY requirements.txt /requirements.txt
88-
RUN python3 -m pip install --require-hashes -r requirements.txt
87+
RUN python3.10 -m pip install --require-hashes -r requirements.txt
8988

9089
CMD ["python3.10"]

0 commit comments

Comments
 (0)