Missing dependencies error trying to install Postgis on Python docker container

  django, docker, postgresql, python

I’m trying to add the next libraries to add support for geospatial data to my Django project:

  • binutils
  • libproj-dev
  • gdal-bin
  • postgresql-postgis

So I updated my Dockefile with the next line:

FROM python:alpine

RUN apk update && apk add --no-cache 
    binutils 
    libproj-dev 
    gdal-bin 
    postgresql-postgis

I know the missing dependencies error is due to I’m using the Linux alpine python image, but I donĀ“t know how to add the corresponding repositories or what are those.

Source: Docker Questions

LEAVE A COMMENT