Skip to content

Commit 512b399

Browse files
committed
previous attempt didn't fix the gsutil --version error
but did change the error output to the slightly longer /usr/lib/google-cloud-sdk/bin/gsutil: 201: python: not found
1 parent f547392 commit 512b399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder-base-gcloud/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FROM --platform=$TARGETPLATFORM yolean/builder-base
1414
USER root
1515
RUN set -ex; \
1616
export DEBIAN_FRONTEND=noninteractive; \
17-
runDeps='python3 python-is-python3 rsync openssh-client'; \
17+
runDeps='python3 rsync openssh-client'; \
1818
\
1919
apt-get update && apt-get install -y --no-install-recommends $runDeps $buildDeps; \
2020
\
@@ -26,5 +26,6 @@ COPY --from=cloud-sdk /usr/lib/google-cloud-sdk /usr/lib/google-cloud-sdk
2626
COPY --from=cloud-sdk /root/.config/gcloud /home/nonroot/.config/gcloud
2727

2828
ENV PATH="${PATH}:/usr/lib/google-cloud-sdk/bin"
29+
ENV CLOUDSDK_PYTHON=/usr/bin/python3
2930

3031
RUN gsutil version

0 commit comments

Comments
 (0)