optimized-docker-build-script

This commit is contained in:
abhayjoshi201
2024-10-19 14:33:56 +05:30
parent 0058ba219e
commit d28d049bcb

View File

@@ -15,7 +15,7 @@ declare -A services=(
for service in "${!services[@]}"; do
docker build -f "${services[$service]}" -t "$service" .
# Check if the build succeeded
## Check if the build succeeded
if [ $? -ne 0 ]; then
echo "Error building $service image. Exiting..."
exit 1