SQL Server on Linux with Python 3.7 and pyodbc

I am relatively new to docker and Linux and I am trying to build a linux container with SQL Server, Python 3.7 and the pyodbc module on it.

I have been using mcr.microsoft.com/mssql/server:2017-latest and found python 3.5 on there, but I can’t seem to get the pyodbc module installed, I keep getting an error saying the setup failed, can’t find -x86-64-linux-gnu-gcc

I would prefer to get python 3.7 on than use python 3.5 anyway, but not sure how to go about this in a docker build.

Any guidance or advice would be appreciated.