Skip to content

Instantly share code, notes, and snippets.

@fabiononato
Last active September 21, 2018 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiononato/a7247c7ab6f360b7030532aea2d69ad9 to your computer and use it in GitHub Desktop.
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
# 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