Skip to content

Commit

Permalink
Set the Docker build context to the root of the git repo in Docker Hub
Browse files Browse the repository at this point in the history
The working directory in the Docker Hub build process seems to be
the directory of the Dockerfile setting in the Docker Hub
automated build settings. Currently, they refer to the docker directory
under the root of the git repo.
  • Loading branch information
markkuriekkinen committed Feb 24, 2022
1 parent f639c1f commit 8f3a36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for layer in "" "huey"; do
echo "### PWD=$(pwd)"

docker build --build-arg "FULL_TAG=$ver" \
-t "$DOCKER_REPO":"$tag" -f "$file" .
-t "$DOCKER_REPO":"$tag" -f "$file" ..
res=$?
if [ $res -ne 0 ]; then
echo "Building layer '$layer' returned $res" >&2
Expand Down

0 comments on commit 8f3a36e

Please sign in to comment.