# Ensure logback-spring.xml exists and is a file (not a directory)
ENTRYPOINT["sh","-c","if [ ! -f \"${LOGGING_CONFIG}\"]||[ -d \"${LOGGING_CONFIG}\"];thenecho'Warning: ${LOGGING_CONFIG} not found or is a directory, using default from JAR';LOGGING_CONFIG='';fi&& java $JAVA_OPTS${LOGGING_CONFIG:+-Dlogging.config=${LOGGING_CONFIG}} -DLOG_DIR=${LOG_DIR} -jar app.jar"]