Does anyone know why this command, when executed in a shell script, succeeds in Ubuntu but fails with "Error: Unrecognized option: -c" in Amazon Linux 2? I realize it's with the /bin/bash part most likely, but completely stumped what the issue is beyond something about the double quotes...
docker run --rm --name graal -v $(pwd):/${PROJECT_NAME} ghcr.io/graalvm/native-image:ol8-java11-22.2.0 \
/bin/bash -c "gu install native-image; \
native-image \
-H:EnableURLProtocols=http \
-H:ReflectionConfigurationFiles=/${PROJECT_NAME}/reflect.json \
-jar /${PROJECT_NAME}/target/${PROJECT_NAME}-${PROJECT_VERSION}.jar \
; \
mkdir /${PROJECT_NAME}/target/custom-runtime \
; \
cp ${PROJECT_NAME}-${PROJECT_VERSION} /${PROJECT_NAME}/target/custom-runtime/${PROJECT_NAME}";