Dockerfile examples

Dockerfile example by Josh Gordon

Ref: https://hub.docker.com/r/jbgordon/recipes/

Ref: https://www.youtube.com/watch?v=tNa99PG8hR8&list=PLOU2XLYxmsIIuiBfYad6rFYQU_jL2ryal&index=6

FROM gcr.io/tensorflow/tensorflow:latest-devel

RUN pip install --upgrade pip
RUN apt-get update
RUN apt-get install -y graphviz libgraphviz-dev pkg-config
RUN pip install pygraphviz
RUN apt-get install -y python-scipy
RUN pip install pydot
RUN pip install sklearn

To remove mysql from docker

 apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5
 rm -rf /etc/mysql /var/lib/mysql
 apt-get autoremove
 apt-get autoclean

Dockerfile example

installing vim, nodejs, mysql-server, graphviz, cython, pandas, Pillow etc..

To build a custom docker image based on the Dockerfile

Last updated

Was this helpful?