How to address 'OSError: libc not found' raised on Gunicorn exec of Flask app inside Alpine docker container How to address 'OSError: libc not found' raised on Gunicorn exec of Flask app inside Alpine docker container flask flask

How to address 'OSError: libc not found' raised on Gunicorn exec of Flask app inside Alpine docker container


In your Dockerfile:

RUN apk add binutils libc-dev


This problem seems related to a new version of Gunicorn 20.0.0. Try to use a previous one 19.9.0


Yes Gunicorn 20.0.0 requires the package libc-dev.

So this works for me:

RUN apk --no-cache add libc-dev