diff options
author | zhaoyehua <zhaoyh6@asiainfo.com> | 2021-03-24 16:25:33 +0800 |
---|---|---|
committer | zhaoyehua <zhaoyh6@asiainfo.com> | 2021-03-24 16:27:48 +0800 |
commit | dd67db0dede71551c772caa685d3c12a1a3e57d2 (patch) | |
tree | 3c36524a6f65e49002f8dd9767445300da343734 /assembly/dockerfile | |
parent | 11b32441cc0235cc5ca4066085a3d8d0253e5789 (diff) |
feat:Adjust the directory and increase the image production process
Issue-ID: USECASEUI-525
Change-Id: I7bcbf0b48778fd59946483b253f32dda217913c0
Signed-off-by: zhaoyehua <zhaoyh6@asiainfo.com>
Diffstat (limited to 'assembly/dockerfile')
-rw-r--r-- | assembly/dockerfile | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/assembly/dockerfile b/assembly/dockerfile deleted file mode 100644 index b022d60..0000000 --- a/assembly/dockerfile +++ /dev/null @@ -1,53 +0,0 @@ -FROM tensorflow/serving:latest - -WORKDIR /home/run/ - -RUN DEBIAN_FRONTEND=noninteractive apt-get update - -#RUN DEBIAN_FRONTEND=noninteractive apt-get install python3.7.3 -RUN DEBIAN_FRONTEND=noninteractive apt-get install wget -y -RUN DEBIAN_FRONTEND=noninteractive apt-get install make -y -RUN DEBIAN_FRONTEND=noninteractive apt-get install gcc -y -RUN DEBIAN_FRONTEND=noninteractive apt-get install zlib* -y -RUN DEBIAN_FRONTEND=noninteractive apt-get install libffi-dev -y -RUN DEBIAN_FRONTEND=noninteractive apt-get install openssl -y -#RUN DEBIAN_FRONTEND=noninteractive wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz - -WORKDIR /home/run/ -RUN wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz -RUN tar -zxvf openssl-1.0.2j.tar.gz -WORKDIR /home/run/openssl-1.0.2j -RUN ./config --prefix=/usr/local/lab/openssl-1.0.2j shared no-zlib -RUN make -RUN make install -RUN ln -s /usr/local/lab/openssl-1.0.2j/lib/libssl.so.1.0.0 /usr/lib/libssl.so.1.0.0 -RUN ln -s /usr/local/lab/openssl-1.0.2j/lib/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.1.0.0 - - -WORKDIR /home/run/ -COPY Python-3.7.3.tar.gz /home/run/ -RUN tar -zxvf Python-3.7.3.tar.gz -WORKDIR /home/run/Python-3.7.3/ -#RUN DEBIAN_FRONTEND=noninteractive ./configure --with-ssl -#RUN rm /home/run/Python-3.7.3/Modules/Setup -#COPY Setup /home/run/Python-3.7.3/Modules/Setup -RUN make -RUN make install -RUN ln -s /usr/local/bin/python3 /usr/bin/python -RUN ln -s /usr/local/bin/pip3 /usr/bin/pip - - -WORKDIR /home/run/ -RUN DEBIAN_FRONTEND=noninteractive apt-get install curl -y -RUN DEBIAN_FRONTEND=noninteractive curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py -RUN DEBIAN_FRONTEND=noninteractive python get-pip.py - -COPY requirements /home/run/requirements -RUN DEBIAN_FRONTEND=noninteractive pip install -r requirements - -ADD nlp.tar.gz /home/run/ - -COPY run.sh /home/run/run.sh - -ENTRYPOINT /home/run/run.sh - |