Install gcloud in /opt, so it can be accessed by non root (#10400)

This commit is contained in:
Jakub Nyckowski 2022-02-17 01:25:48 -05:00 committed by GitHub
parent e50ffab858
commit 7c19757d28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,8 +69,8 @@ RUN apt-get update -y --fix-missing && \
rm -rf /var/lib/apt/lists/*
# Install gcloud SDK and Firestore emulator.
RUN curl -sSL https://sdk.cloud.google.com | bash
ENV PATH="$PATH:/root/google-cloud-sdk/bin"
RUN curl -sSL https://sdk.cloud.google.com | bash -s -- --install-dir=/opt --disable-prompts
ENV PATH="$PATH:/opt/google-cloud-sdk/bin"
# beta component is required by firestore emulator: https://cloud.google.com/sdk/gcloud/reference/beta/emulators/firestore/start
RUN gcloud components install cloud-firestore-emulator beta