Add support for xgboost in standard Flask python app container
When trying to deploy a python app using Flask for an API on Azure Web Apps, if the dependency of xgboost is included errors occur during the build.
For example, if the following is application.py:
import xgboost as xgb
import pandas as pd
from flask import Flask
from flask import request, jsonify
import numpy as np
then errors are thrown as follows:
2020-01-14T22:17:00.663067008Z xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
2020-01-14T22:17:00.663070609Z Likely causes:
2020-01-14T22:17:00.663074109Z OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
2020-01-14T22:17:00.663077709Z You are running 32-bit Python on a 64-bit OS
the problem appears to be missing libgomp.so