# If /run/secrets/lottery-config.properties exists (mounted), ConfigLoader will use it
# Otherwise, create-secret-file.sh will create it from env vars (for development/testing)
# Uses external logback-spring.xml for runtime log level changes
# Ensure logback-spring.xml exists and is a file (not a directory)
ENTRYPOINT["sh","-c","if[!-f/run/secrets/lottery-config.properties];then /app/create-secret-file.sh;fi&&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"]