Last active
September 21, 2018 23:03
-
-
Save fabiononato/a7247c7ab6f360b7030532aea2d69ad9 to your computer and use it in GitHub Desktop.
Simple Dockerfile to have XKCD font (Humor-Sans) on matplotlib.pyplot charts in Docker & install GPflow from github
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
# Whatever base image that rocks your boat: | |
FROM tensorflow/tensorflow:latest-py3 | |
MAINTAINER Fabio Nonato de Paula <https://github.com/fabiononato> | |
# Yep, I'm really fond of TF Probability: | |
RUN pip3 install --user --upgrade tensorflow-probability | |
# Need GIT with that: | |
RUN apt-get update | |
RUN apt-get install -y git | |
# Once upon a time I would like to regress some GP: | |
RUN pip3 install git+https://github.com/GPflow/GPflow.git@develop | |
# Downloading and installing Humor-Sans | |
RUN curl -v -o Humor-Sans-1.0.ttf http://antiyawn.com/uploads/Humor-Sans-1.0.ttf | |
RUN mkdir --parents /usr/local/share/fonts/; mv Humor*.ttf /usr/local/share/fonts/Humor-Sans-1.0.ttf | |
# Not a safe way to start a Jupyter Notebook | |
CMD jupyter notebook --allow-root --ip='*' --no-browser --NotebookApp.token='' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment