Skip to content

Instantly share code, notes, and snippets.

@johnniehard
Forked from perrygeo/Dockerfile
Last active November 15, 2019 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnniehard/90a7f4fc1b0701360f67ba77b9b50c7a to your computer and use it in GitHub Desktop.
Save johnniehard/90a7f4fc1b0701360f67ba77b9b50c7a to your computer and use it in GitHub Desktop.
Minimal debian image with Python 3.6 and geo python tools
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"]
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"]
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