diff --git a/build/docker/api/Makefile b/build/docker/api/Makefile index 7f372509c..21a605906 100644 --- a/build/docker/api/Makefile +++ b/build/docker/api/Makefile @@ -35,7 +35,8 @@ artifact: @set -euo pipefail cd ../../.. docker build $(BUILD_ARGS) --target base-build --build-arg DOCKER_FILE_PATH="$$(realpath --relative-to="." "$(ROOT_DIR)")" --build-arg VINYLDNS_VERSION="$(IMAGE_TAG)" -t "vinyldns:api-artifact" -f "$(ROOT_DIR)/Dockerfile" . - docker run -it --rm -v "$$(pwd)/:/output" vinyldns:api-artifact /bin/bash -c "cp /build/artifacts/*.jar /output/artifacts" + USE_TTY="" && test -t 1 && USE_TTY="-t" + docker run -i $${USE_TTY} --rm -v "$$(pwd)/:/output" vinyldns:api-artifact /bin/bash -c "cp /build/artifacts/*.jar /output/artifacts" build: @set -euo pipefail diff --git a/build/docker/portal/Makefile b/build/docker/portal/Makefile index ff1ba53cf..561b0880b 100644 --- a/build/docker/portal/Makefile +++ b/build/docker/portal/Makefile @@ -39,7 +39,8 @@ artifact: @set -euo pipefail cd ../../.. docker build $(BUILD_ARGS) --target base-build --build-arg DOCKER_FILE_PATH="$$(realpath --relative-to="." "$(ROOT_DIR)")" --build-arg VINYLDNS_VERSION="$(IMAGE_TAG)" -t "vinyldns:portal-artifact" -f "$(ROOT_DIR)/Dockerfile" . - docker run -it --rm -v "$$(pwd)/:/output" vinyldns:portal-artifact /bin/bash -c "cp /build/artifacts/*.zip /output/artifacts/" + USE_TTY="" && test -t 1 && USE_TTY="-t" + docker run -i $${USE_TTY} --rm -v "$$(pwd)/:/output" vinyldns:portal-artifact /bin/bash -c "cp /build/artifacts/*.zip /output/artifacts/" build: @set -euo pipefail