Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -17,8 +17,9 @@ RUN apt-get update -y && apt-get install -y google-cloud-sdk
|
|
17 |
|
18 |
# You can include additional commands to configure or use the gcloud CLI here
|
19 |
# For example, you can authenticate with your service account key file:
|
20 |
-
|
21 |
-
|
|
|
22 |
|
23 |
# ... further instructions ...
|
24 |
ENV NVIDIA_VISIBLE_DEVICES all
|
|
|
17 |
|
18 |
# You can include additional commands to configure or use the gcloud CLI here
|
19 |
# For example, you can authenticate with your service account key file:
|
20 |
+
COPY your-service-account-key.json /tmp/key.json
|
21 |
+
ENV GOOGLE_APPLICATION_CREDENTIALS=/tmp/key.json
|
22 |
+
RUN gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
|
23 |
|
24 |
# ... further instructions ...
|
25 |
ENV NVIDIA_VISIBLE_DEVICES all
|