summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2018-09-17 10:08:27 -0700
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-10-02 14:37:31 +1000
commit8ad5a5187638153aa88a579128d2b2082e861224 (patch)
tree6bfc36c44f3ee26922ee0336c3d96dd7725441aa
parent3d408f06f22049c94a295c501852876f4f4e5e36 (diff)
downloadtalos-petitboot-8ad5a5187638153aa88a579128d2b2082e861224.zip
talos-petitboot-8ad5a5187638153aa88a579128d2b2082e861224.tar.gz
docker: Change into docker directory
To avoid sending all the files in the top most project directory tree down to the docker daemon, change into the docker directory when running 'docker build'. Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rwxr-xr-xdocker/build-builder2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/build-builder b/docker/build-builder
index 8dcfba8..f593e54 100755
--- a/docker/build-builder
+++ b/docker/build-builder
@@ -116,7 +116,7 @@ fi
echo "Building docker image: ${DOCKER_TAG}" >&2
-cd ${TOP_DIR}
+cd ${TOP_DIR}/docker
run_cmd "docker build \
--file "${DOCKER_FILE}" \
--build-arg DOCKER_FROM=${DOCKER_FROM} \
OpenPOWER on IntegriCloud