File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ FROM ${BASE_IMAGE}
44
55ARG MODEL_URL
66ARG GOOGLE_APPLICATION_CREDENTIALS
7- RUN gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
7+ # Run docker build using the credentials if provided
8+ RUN if [[-z "$GOOGLE_APPLICATION_CREDENTIALS" ]]; then gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}; fi
89RUN gsutil -m cp -r ${MODEL_URL} .
910ARG FOLDER_NAME
1011RUN /bin/bash -c ". activate ${CONDA_ENVIRONMENT} && conda env update --name ${CONDA_ENVIRONMENT} --file /${HOME}/${FOLDER_NAME}/conda.yaml"
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ ARG MODEL_URL
66ARG FOLDER_NAME
77ARG GOOGLE_APPLICATION_CREDENTIALS
88
9- RUN gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
9+ # Run docker build using the credentials if provided
10+ RUN if [[-z "$GOOGLE_APPLICATION_CREDENTIALS" ]]; then gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}; fi
1011RUN gsutil -m cp -r ${MODEL_URL} .
1112
1213# Install dependencies required by the user-defined ensembler
You can’t perform that action at this time.
0 commit comments