Skip to content

Instantly share code, notes, and snippets.

@beyoung
Created May 17, 2019 07:07
Show Gist options
  • Save beyoung/61d4382089d271bda7ccb5f55825690e to your computer and use it in GitHub Desktop.
Save beyoung/61d4382089d271bda7ccb5f55825690e to your computer and use it in GitHub Desktop.
alpine geodjango enviroment
FROM python:3.6-alpine
ENV CFLAGS="$CFLAGS -L/lib"
ENV PYTHONUNBUFFERED 0
RUN apk update && \
apk upgrade && \
apk add --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
binutils \
gcc \
gdal \
geos \
git \
jpeg-dev \
libffi-dev \
libpq \
linux-headers \
mailcap \
musl-dev \
proj4-dev \
postgresql \
postgresql-client \
postgresql-dev \
zlib-dev && \
rm -rf /var/cache/apk/*
RUN ln -s /usr/lib/libgeos_c.so.1 /usr/local/lib/libgeos_c.so
RUN ln -s /usr/lib/libgdal.so.20.1.3 /usr/lib/libgdal.so
RUN pip install --upgrade pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment