Created
March 5, 2019 01:46
-
-
Save tonyreina/34992387320be2f7527ccb92dae53c84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## TO BUILD CONTAINER: | |
## Make sure you have downloaded the Linux version of OpenVINO: https://software.intel.com/en-us/openvino-toolkit/choose-download/free-download-linux | |
## Place the downloaded OpenVINO installer in the same directory as this Dockerfile. | |
## docker build -t 3d_unet_decathlon --build-arg HTTP_PROXY=${HTTP_PROXY} --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg NO_PROXY=${NO_PROXY} --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy} . | |
## TO RUN BUILT CONTAINER: | |
## For CPU - `docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp.X11-unix -it 3d_unet_decathlon` | |
FROM ubuntu:16.04 | |
ENV APP_DIR /app | |
ADD . ${APP_DIR} | |
WORKDIR ${APP_DIR} | |
# Make sure programs are installed | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
autoconf \ | |
build-essential \ | |
curl \ | |
cpio \ | |
cmake \ | |
git \ | |
g++ \ | |
libtool \ | |
lsb-release \ | |
nano \ | |
pciutils \ | |
python3.5-dev \ | |
python3-pip \ | |
python3-setuptools \ | |
sudo \ | |
tar \ | |
udev \ | |
unzip \ | |
usbutils \ | |
wget \ | |
vim \ | |
&& apt-get clean all \ | |
&& cd /usr/local/bin \ | |
&& ln -s /usr/bin/python3 python \ | |
&& pip3 install --upgrade pip | |
RUN pip3 install \ | |
https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.12.0-cp35-cp35m-linux_x86_64.whl \ | |
h5py matplotlib nibabel numpy psutil keras tqdm | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment