diff --git a/.dockerignore b/.dockerignore index 4b019f9..e7f7a4a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ output/ work/ deploy/ +apt-cacher-ng/ +.git/objects/* diff --git a/build-docker.sh b/build-docker.sh index eabc8f7..64bb120 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -13,9 +13,9 @@ if ! $DOCKER ps >/dev/null; then fi set -e -config_mount=() +config_file=() if [ -f config ]; then - config_mount=("-v" "$(pwd)/config:/pi-gen/config:ro") + config_file=("--env-file" "$(pwd)/config") source config fi @@ -24,7 +24,7 @@ CONTINUE=${CONTINUE:-0} if [ "$*" != "" ] || [ -z "${IMG_NAME}" ]; then if [ -z "${IMG_NAME}" ]; then - echo "IMG_NAME not set in 'build'" 1>&2 + echo "IMG_NAME not set in 'config'" 1>&2 echo 1>&2 fi cat >&2 <