title: Use openvino from docker
body: <p>I am trying to use OpenVINO from docker container. 
  I use docker file from official web site <a href="https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_docker_linux.html" rel="nofollow noreferrer">https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_docker_linux.html</a></p>
  
  <pre><code>FROM ubuntu:18.04
  USER root
  WORKDIR /
  SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
  # Creating user openvino
  RUN useradd -ms /bin/bash openvino &amp;&amp; \
      chown openvino -R /home/openvino
  ARG DEPENDENCIES="autoconf \
                    automake \
                    build-essential \
                    cmake \
                    cpio \
                    curl \
                    gnupg2 \
                    libdrm2 \
                    libglib2.0-0 \
                    lsb-release \
                    libgtk-3-0 \
                    libtool \
                    udev \
                    unzip \
                    dos2unix"
  RUN apt-get update &amp;&amp; \
      apt-get install -y --no-install-recommends ${DEPENDENCIES} &amp;&amp; \
      rm -rf /var/lib/apt/lists/*
  WORKDIR /thirdparty
  RUN sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list &amp;&amp; \
      apt-get update &amp;&amp; \
      apt-get source ${DEPENDENCIES} &amp;&amp; \
      rm -rf /var/lib/apt/lists/*
  # setup Python
  ENV PYTHON python3.6
  RUN apt-get update &amp;&amp; \
      apt-get install -y --no-install-recommends python3-pip python3-dev lib${PYTHON}=3.6.9-1~18.04 &amp;&amp; \
      rm -rf /var/lib/apt/lists/*
  ARG package_url=ARG package_url=http://registrationcenter-download.intel.com/akdlm/irc_nas/16612/l_openvino_toolkit_p_2020.2.120.tgz
  ARG TEMP_DIR=/tmp/openvino_installer
  WORKDIR ${TEMP_DIR}
  ADD ${package_url} ${TEMP_DIR}
  # install product by installation script
  ENV INTEL_OPENVINO_DIR /opt/intel/openvino
  RUN tar -xzf ${TEMP_DIR}/*.tgz --strip 1
  RUN sed -i 's/decline/accept/g' silent.cfg &amp;&amp; \
      ${TEMP_DIR}/install.sh -s silent.cfg &amp;&amp; \
      ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh
  WORKDIR /tmp
  RUN rm -rf ${TEMP_DIR}
  # installing dependencies for package
  WORKDIR /tmp
  RUN ${PYTHON} -m pip install --no-cache-dir setuptools &amp;&amp; \
      find "${INTEL_OPENVINO_DIR}/" -type f -name "*requirements*.*" -path "*/${PYTHON}/*" -exec ${PYTHON} -m pip install --no-cache-dir -r "{}" \; &amp;&amp; \
      find "${INTEL_OPENVINO_DIR}/" -type f -name "*requirements*.*" -not -path "*/post_training_optimization_toolkit/*" -not -name "*windows.txt"  -not -name "*ubuntu16.txt" -not -path "*/python3*/*" -not -path "*/python2*/*" -exec ${PYTHON} -m pip install --no-cache-dir -r "{}" \;
  WORKDIR ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/accuracy_checker
  RUN source ${INTEL_OPENVINO_DIR}/bin/setupvars.sh &amp;&amp; \
      ${PYTHON} -m pip install --no-cache-dir -r ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/accuracy_checker/requirements.in &amp;&amp; \
      ${PYTHON} ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/accuracy_checker/setup.py install
  WORKDIR ${INTEL_OPENVINO_DIR}/deployment_tools/tools/post_training_optimization_toolkit
  RUN if [ -f requirements.txt ]; then \
          ${PYTHON} -m pip install --no-cache-dir -r ${INTEL_OPENVINO_DIR}/deployment_tools/tools/post_training_optimization_toolkit/requirements.txt &amp;&amp; \
          ${PYTHON} ${INTEL_OPENVINO_DIR}/deployment_tools/tools/post_training_optimization_toolkit/setup.py install; \
      fi;
  # Post-installation cleanup and setting up OpenVINO environment variables
  RUN if [ -f "${INTEL_OPENVINO_DIR}"/bin/setupvars.sh ]; then \
          printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" &gt;&gt; /home/openvino/.bashrc; \
          printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" &gt;&gt; /root/.bashrc; \
      fi;
  RUN find "${INTEL_OPENVINO_DIR}/" -name "*.*sh" -type f -exec dos2unix {} \;
  USER openvino
  WORKDIR ${INTEL_OPENVINO_DIR}
  CMD ["/bin/bash"]
  </code></pre>
  
  <p>But if I try to launch python program with this line:</p>
  
  <pre><code>from openvino.inference_engine import IECore
  </code></pre>
  
  <p>It writes ModuleNotFoundError, No module named 'openvino'. I tried to source file setupvars.sh with these commands, but it doesn't help. </p>
  
  <pre><code>RUN /bin/bash -c "source /opt/intel/openvino/bin/setupvars.sh"
  RUN source /opt/intel/openvino/bin/setupvars.sh
  </code></pre>
  
  <p>What should I do to use openvino python apps from docker? </p>