话不多说,上Dockerfile,
如果能随时上网,则pip的安装,可以在线进行。
这里也采用了离线方案。
FROM it.com.cn/3rd_part/jupyter_tensorflow_mlflow:xxxxxxx
maintainer it.com.cn
ENV ORACLE_HOME=/oracle_client/instantclient_12_1
ENV PATH=$ORACLE_HOME:$PATH
ENV LD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH
ENV NLS_LANGE="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
COPY cx_Oracle-7.3.0-cp36-cp36m-manylinux1_x86_64.whl /tmp/
COPY instantclient_12_1/ /oracle_client/instantclient_12_1/
RUN ls -lh /tmp/ && ls -lh /oracle_client/ \
&& export http_proxy=http://127.0.0.1:3128 && export https_proxy=http://127.0.0.1:3128 \
&& apt-get install libaio1 \
&& pip install /tmp/cx_Oracle-7.3.0-cp36-cp36m-manylinux1_x86_64.whl \
&& rm -rf /tmp/* \
&& echo "20200602"