19 lines
349 B
Bash
19 lines
349 B
Bash
|
#!/bin/bash
|
||
|
# Custom builder script for Skaffold
|
||
|
# https://skaffold.dev/docs/pipeline-stages/builders/custom/
|
||
|
#
|
||
|
|
||
|
# generate Dockerfile
|
||
|
./generate-Dockerfile.sh -s --no-datascience-notebook --no-useful-packages
|
||
|
cd .build
|
||
|
|
||
|
# print Dockerfile
|
||
|
cat Dockerfile
|
||
|
|
||
|
# build
|
||
|
docker build -f Dockerfile -t $IMAGE .
|
||
|
|
||
|
if $PUSH_IMAGE; then
|
||
|
docker push $IMAGE
|
||
|
fi
|