Skip to content

Commit effb8fd

Browse files
authored
fix(docs): add build-prefix for backend jobs (#9375)
1 parent c25207a commit effb8fd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.kokoro/docs/docker/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
123123
&& rm /tmp/get-pip.py \
124124
&& python3.11 -m pip
125125

126+
# Define the prefix argument, default to backend build environment.
127+
# Override this locally by using the following:
128+
# docker build --build-arg PATH_PREFIX="." .
129+
ARG PATH_PREFIX="git/build-dir/.kokoro/docs/docker"
130+
126131
# Install docsuploader
127-
COPY requirements.txt .
132+
COPY ${PATH_PREFIX}/requirements.txt .
128133
RUN python3.11 -m pip install --require-hashes -r requirements.txt

0 commit comments

Comments
 (0)