Skip to content

Instantly share code, notes, and snippets.

@olooney
Last active May 23, 2018 20:31
Show Gist options
  • Save olooney/fb286b157d1b3ebd0a0c316882ab6d5d to your computer and use it in GitHub Desktop.
Save olooney/fb286b157d1b3ebd0a0c316882ab6d5d to your computer and use it in GitHub Desktop.
basic scipy sandbox dockerfile
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y \
git vim less sudo man wget curl \
build-essential llvm valgrind \
libopenblas-dev libopenblas-base \
python3 python3-numpy python3-pandas python3-pip \
graphviz
RUN update-alternatives --config libblas.so.3
RUN pip3 install --upgrade pip
RUN pip3 install virtualenv ipython[all] scipy sklearn \
statsmodels patsy matplotlib seaborn keras Cython \
pyyaml requests sqlalchemy sympy nltk markdown \
xgboost graphviz pillow psycopg2 cython flask
RUN useradd --create-home olooney
RUN usermod -a -G sudo olooney
USER olooney
WORKDIR /home/olooney
RUN git config --global user.email "olooney@gmail.com"
RUN git config --global user.name "Oran Looney"
RUN git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
RUN git config --global alias.lgg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --name-only"
RUN git config --global push.default simple
RUN echo 'alias python="python3"' >> ~/.bashrc
RUN echo 'alias pip="pip3"' >> ~/.bashrc
RUN echo 'set number' >> ~/.vimrc
RUN echo 'set tabstop=4' >> ~/.vimrc
RUN echo 'set shiftwidth=4' >> ~/.vimrc
RUN echo 'set autoindent' >> ~/.vimrc
RUN echo 'set bg=dark' >> ~/.vimrc
# RUN git clone https://github.com/olooney/{project}.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment