Sign inSign up

yd8534976/aidenml

By yd8534976

•Updated almost 9 years ago

Image
0

954

yd8534976/aidenml repository overview

FROM nvidia/cuda:8.0-runtime

RUN apt-get update

⁠http://stackoverflow.com/questions/22466255/is-it-possibe-to-answer-dialog-questions-when-installing-under-docker⁠

ARG DEBIAN_FRONTEND=noninteractive RUN apt-get install -y --no-install-recommends apt-utils

⁠Developer Essentials

RUN apt-get install -y --no-install-recommends git curl vim unzip openssh-client wget

⁠Build tools

RUN apt-get install -y --no-install-recommends build-essential cmake

⁠OpenBLAS

RUN apt-get install -y --no-install-recommends libopenblas-dev

⁠Python 3.5

⁠

RUN apt-get install -y --no-install-recommends python3.5 python3.5-dev python3-pip RUN pip3 install --no-cache-dir --upgrade pip setuptools RUN echo "alias python='python3'" >> /root/.bash_aliases RUN echo "alias pip='pip3'" >> /root/.bash_aliases

⁠Pillow and it's dependencies

RUN apt-get install -y --no-install-recommends libjpeg-dev zlib1g-dev RUN pip3 --no-cache-dir install Pillow

⁠Common libraries

RUN pip3 --no-cache-dir install
numpy scipy sklearn scikit-image pandas matplotlib requests

⁠Cython

RUN pip3 --no-cache-dir install Cython

⁠

⁠Jupyter Notebook

⁠

RUN pip3 --no-cache-dir install jupyter

⁠Allow access from outside the container, and skip trying to open a browser.

⁠NOTE: disable authentication token for convenience. DON'T DO THIS ON A PUBLIC SERVER.

RUN mkdir /root/.jupyter RUN echo "c.NotebookApp.ip = '*'"
"\nc.NotebookApp.open_browser = False"
"\nc.NotebookApp.token = ''"
> /root/.jupyter/jupyter_notebook_config.py EXPOSE 8888

⁠

⁠Tensorflow 1.4.0 - GPU

⁠

RUN pip3 install --no-cache-dir --upgrade tensorflow-gpu

⁠Expose port for TensorBoard

EXPOSE 6006

⁠

⁠OpenCV 3.2

⁠

⁠Dependencies

RUN apt-get install -y --no-install-recommends
libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libgtk2.0-dev
liblapacke-dev checkinstall

⁠Get source from github

RUN git clone -b 3.2.0 --depth 1 https://github.com/opencv/opencv.git⁠ /usr/local/src/opencv

⁠Compile

RUN cd /usr/local/src/opencv && mkdir build && cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr/local
-D BUILD_TESTS=OFF
-D BUILD_PERF_TESTS=OFF
-D PYTHON_DEFAULT_EXECUTABLE=$(which python3)
.. &&
make -j"$(nproc)" &&
make install

⁠

⁠Keras 2.1.1

⁠

RUN pip3 install --no-cache-dir --upgrade h5py pydot_ng keras

⁠

⁠PyCocoTools

⁠

⁠Using a fork of the original that has a fix for Python 3.

⁠I submitted a PR to the original repo (https://github.com/cocodataset/cocoapi/pull/50⁠)

⁠but it doesn't seem to be active anymore.

RUN pip3 install --no-cache-dir git+https://github.com/waleedka/coco.git#subdirectory=PythonAPI⁠

⁠

⁠Cleanup

⁠

RUN apt-get clean &&
apt-get autoremove

WORKDIR "/root" CMD ["/bin/bash"]

Tag summary

Content type

Image

Digest

Size

1.7 GB

Last updated

almost 9 years ago

docker pull yd8534976/aidenml