I've used the python:2.7 image which is based on buildpack-deps:jessie. The binaries for libdb5.3 are contained in the image, but the headers are not. That leads to Python not building dbm support, yielding ImportError: No module named dbm.
Since the library is already contained in the image, let's allow to compile against it. I suggest adding the libdb-dev package. It only adds a few kilobytes.
I've used the
python:2.7
image which is based onbuildpack-deps:jessie
. The binaries forlibdb5.3
are contained in the image, but the headers are not. That leads to Python not building dbm support, yieldingImportError: No module named dbm
.Since the library is already contained in the image, let's allow to compile against it. I suggest adding the
libdb-dev
package. It only adds a few kilobytes.