AspireCloud/meta/bin/docker-exec
2025-09-26 10:59:17 -06:00

10 lines
221 B
Bash
Executable file

#!/bin/sh
cd $(dirname $0)/../..
if which docker >/dev/null 2>&1; then
exec docker compose exec ${APP_CONTAINER:-webapp} "$@"
else
# docker not found means we're probably in the app container already
exec "$@"
fi