Last active
March 4, 2020 20:58
-
-
Save iMerica/de2771a2fc6d06e9e4062a6514afde89 to your computer and use it in GitHub Desktop.
Python 3.8 + Alpine + GDAL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8.0-alpine | |
EXPOSE 8000 | |
MAINTAINER "iMichael" <[email protected]> | |
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