File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed
Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1- ARG BASE_IMAGE \
2- BASE_IMAGE_TAG
3-
4- FROM $ {BASE_IMAGE}:$ {BASE_IMAGE_TAG}
1+ {{ if eq .Accelerator " gpu" }}
2+ FROM us-docker.pkg.dev /colab-images/public/runtime:release-colab-external_20260126-060048_RC00
3+ {{ else }}
4+ FROM us-docker.pkg.dev /colab-images/public/cpu-runtime:release-colab-external_20260123-060023_RC00
5+ {{ end }}
56
67ADD kaggle_requirements.txt /kaggle_requirements.txt
78
Original file line number Diff line number Diff line change 4747BUILD_ARGS+=" --build-arg GIT_COMMIT=$( git rev-parse HEAD) "
4848BUILD_ARGS+=" --build-arg BUILD_DATE=$( date ' +%Y%m%d-%H%M%S' ) "
4949
50- # Read build args from config.txt file.
51- SRCDIR=$( dirname " ${BASH_SOURCE[0]} " )
52- for l in ` cat ${SRCDIR} /config.txt` ; do
53- BUILD_ARGS+=" --build-arg $l "
54- done
55-
5650readonly CACHE_FLAG
5751readonly DOCKERFILE
5852readonly ACCELERATOR
5953readonly IMAGE_TAG
6054readonly BUILD_ARGS
6155
56+ SRCDIR=$( dirname " ${BASH_SOURCE[0]} " )
6257DOCKERFILE_OUTDIR=" ${SRCDIR} /.generated"
6358mkdir -p $DOCKERFILE_OUTDIR
6459DOCKERFILE_PATH=" $DOCKERFILE_OUTDIR /$DOCKERFILE "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments