Skip to content

Instantly share code, notes, and snippets.

@adriantre
Created November 27, 2018 13:08
Show Gist options
  • Save adriantre/b4efc38340f1ada9fc95681eec056662 to your computer and use it in GitHub Desktop.
Save adriantre/b4efc38340f1ada9fc95681eec056662 to your computer and use it in GitHub Desktop.
Dockerfile for spatial data analysis and tensorflow
# Build from existing tensorflow notebook
# https://github.com/jupyter/docker-stacks
FROM jupyter/tensorflow-notebook:latest
USER $NB_UID
# Install gdal (geospatial operations)
RUN conda install --quiet --yes \
'conda-forge::libgdal=2.2*'
# Use .env file to store credentials (passwords and stuff)
# https://github.com/theskumar/python-dotenv#ipython-support
RUN conda install --quiet --yes \
-c conda-forge python-dotenv
# Geopandas dataframe could come in handy
# http://geopandas.org/gallery/plotting_basemap_background.html#sphx-glr-gallery-plotting-basemap-background-py
RUN conda install --quiet --yes \
-c conda-forge geopandas
# Install other packages as needed
# Install other packages as needed
USER $NB_UID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment