forked from openvinotoolkit/model_server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_openvino_base
22 lines (22 loc) · 1.01 KB
/
Dockerfile_openvino_base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM openvino/ubuntu18_runtime
USER root
RUN apt-get update && apt-get install -y python3-dev python3-venv
WORKDIR /ie-serving-py
COPY start_server.sh setup.py version /ie-serving-py/
COPY ie_serving /ie-serving-py/ie_serving
RUN chown -R openvino .
USER openvino
COPY requirements.txt /ie-serving-py/
RUN python3 -m venv .venv && \
. .venv/bin/activate && \
pip3 install --upgrade pip && \
pip3 --no-cache-dir install -r requirements.txt
RUN . .venv/bin/activate && pip3 install .
ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3
ARG OV_PATH=/opt/intel/openvino/deployment_tools
ENV LD_LIBRARY_PATH=""
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OV_PATH/ngraph/lib:
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OV_PATH/inference_engine/external/gna/lib:
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OV_PATH/inference_engine/external/mkltiny_lnx/lib:
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OV_PATH/inference_engine/external/tbb/lib:
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OV_PATH/inference_engine/lib/intel64