-
-
Save johnniehard/90a7f4fc1b0701360f67ba77b9b50c7a to your computer and use it in GitHub Desktop.
Minimal debian image with Python 3.6 and geo python tools
This file contains hidden or 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
version: '3' | |
services: | |
jupyter: | |
build: . | |
ports: | |
- "8888:8888" | |
volumes: | |
- ./:/notebooks | |
command: ["/bin/bash", "-c", "cd /notebooks && jupyter notebook --ip=0.0.0.0 --allow-root"] |
This file contains hidden or 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.6-slim-stretch | |
ADD requirements.txt /tmp/requirements.txt | |
RUN apt-get update && \ | |
apt-get install -y \ | |
build-essential \ | |
make \ | |
gcc \ | |
locales \ | |
libgdal20 libgdal-dev && \ | |
python -m pip install numpy cython --no-binary numpy,cython && \ | |
python -m pip install \ | |
"rasterio>=1.0a12" fiona shapely \ | |
--pre --no-binary rasterio,fiona,shapely && \ | |
python -m pip install -r /tmp/requirements.txt && \ | |
python -m pip uninstall -y cython && \ | |
rm -r /root/.cache/pip && \ | |
apt-get remove -y --purge libgdal-dev make gcc build-essential && \ | |
apt-get autoremove -y && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN dpkg-reconfigure locales && \ | |
locale-gen C.UTF-8 && \ | |
/usr/sbin/update-locale LANG=C.UTF-8 | |
ENV LC_ALL C.UTF-8 | |
CMD ["/bin/python"] |
This file contains hidden or 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
rasterio>=1.0a12 | |
fiona | |
shapely | |
pandas | |
geopandas | |
pyproj | |
mapbox | |
rasterstats | |
mapboxgl | |
jupyter | |
mercantile | |
scipy | |
scikit-learn | |
seaborn | |
statsmodels | |
ggplot | |
scikit-image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment