Last active
December 11, 2021 22:15
-
-
Save iago-pssjd/1ccb3ff6d7332899127013933fef0623 to your computer and use it in GitHub Desktop.
Dockerfile builds image from tensorflow official image to use with Jupyter notebook, adding packages to use in #MIT6.S191 and in #AI4EM_MOOC
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 tensorflow/tensorflow:latest-jupyter | |
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | |
RUN apt-get -y update | |
RUN apt-get install dialog apt-utils -y && apt-get install libgl1-mesa-glx -y && apt-get install libproj-dev -y && apt-get install libgdal-dev -y && apt-get install abcmidi timidity -y && apt-get install graphviz -y && apt-get install python3-gdal -y | |
RUN useradd -m -u 1000 diago | |
USER diago | |
ENV PATH="/home/diago/.local/bin:${PATH}" | |
RUN pip install --upgrade pip | |
RUN pip install --upgrade tensorflow-cpu tensorflow-estimator tensorflow_probability | |
RUN pip install --upgrade nbformat && pip install opencv-python && pip install mitdeeplearning | |
RUN pip install easydict && pip install ipyplot && pip install scikit-image && pip install pandas && pip install seaborn && pip install scikit-learn && pip install pydot && pip install xmltodict && pip install lightgbm | |
RUN pip install cartopy==0.18.0 && pip install xarray && pip install netCDF4 && pip install rasterio | |
RUN pip install gcsfs pyhdf satpy torch visdom | |
RUN pip install git+https://github.com/spaceml-org/ml4floods/#egg=ml4floods | |
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment