Skip to content

Instantly share code, notes, and snippets.

@iMerica
Last active March 4, 2020 20:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iMerica/de2771a2fc6d06e9e4062a6514afde89 to your computer and use it in GitHub Desktop.
Save iMerica/de2771a2fc6d06e9e4062a6514afde89 to your computer and use it in GitHub Desktop.
Python 3.8 + Alpine + GDAL
FROM python:3.8.0-alpine
EXPOSE 8000
MAINTAINER "iMichael" <imichael@pm.me>
WORKDIR /app
RUN apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
libmaxminddb postgresql-dev gcc musl-dev gdal-dev linux-headers g++
RUN pip install --upgrade pip
ADD requirements.txt .
RUN pip install -r requirements.txt \
--no-cache-dir \
--global-option=build_ext \
--global-option="-I/usr/include/gdal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment