optimized-docker-build-script
This commit is contained in:
1 parent
0058ba219e
commit
d28d049bcb
1 file changed
+1
-1
@@ -15,7 +15,7 @@ declare -A services=(
|
|||||||
for service in "${!services[@]}"; do
|
for service in "${!services[@]}"; do
|
||||||
docker build -f "${services[$service]}" -t "$service" .
|
docker build -f "${services[$service]}" -t "$service" .
|
||||||
|
|
||||||
# Check if the build succeeded
|
## Check if the build succeeded
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error building $service image. Exiting..."
|
echo "Error building $service image. Exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user