updating my Dockerfile this way did the trick. in my base stage, i added
RUN apt-get install libmariadb3 libmariadb-dev -y