Skip to content

Commit a4751e8

Browse files
authored
Update install/build-docker-images.sh
Fix in the case where vars are empty
1 parent 7859b76 commit a4751e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/build-docker-images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ echo "${_group}Building and tagging Docker images ..."
33
echo ""
44
# Build any service that provides the image sentry-self-hosted-local first,
55
# as it is used as the base image for sentry-cleanup-self-hosted-local.
6-
$dc build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy --build-arg no_proxy=$no_proxy --force-rm web
7-
$dc build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy --build-arg no_proxy=$no_proxy --force-rm
6+
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm web
7+
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm
88
echo ""
99
echo "Docker images built."
1010

0 commit comments

Comments
 (0)