my Python application requires the following package -> https://pypi.org/project/mysqlclient/ The pain for me here is that the installation of this packages requires the following build stage at my Dockerfile: RUN curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash && \ apt-get update && \ apt-get install -y mariadb-client libmariadb-dev-compat libmariadb-dev To make this RUN command properly work, you also need to install gcc and pkg-config, otherwise the mariadb-client can't be compiled during installation. This way of installation is kinda ugly inside docker as it massively blows up the image size due to the installation of gcc ... How can I have these packages installed without having to install gcc ??? Are there any pre-compiled binaries I can use here? Thanks in advance. Continue reading...