17 lines
608 B
Bash
17 lines
608 B
Bash
#!/bin/bash
|
|
# Loop through all running containers
|
|
for container in $(docker ps --format '{{.Names}}'); do
|
|
echo "------------------------------------------------"
|
|
echo "Checking container: $container"
|
|
|
|
# Try to list the installed next version inside the container
|
|
# Most Coolify/Nixpacks containers place source in /app
|
|
version=$(docker exec "$container" npm list next --depth=0 2>/dev/null | grep 'next@')
|
|
|
|
if [ ! -z "$version" ]; then
|
|
echo -e "\033[31mFOUND NEXT.JS:\033[0m $version"
|
|
else
|
|
echo "Next.js not detected (or not a Node container)"
|
|
fi
|
|
done
|