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 /standalone/src/main/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 'standalone/src/main/assembly/dockerfile')
-rw-r--r-- | standalone/src/main/assembly/dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/standalone/src/main/assembly/dockerfile b/standalone/src/main/assembly/dockerfile new file mode 100644 index 0000000..d8797d3 --- /dev/null +++ b/standalone/src/main/assembly/dockerfile @@ -0,0 +1,21 @@ +FROM tensorflow/serving:latest + +WORKDIR /home/run/ + +RUN DEBIAN_FRONTEND=noninteractive apt-get update +RUN DEBIAN_FRONTEND=noninteractive apt-get install wget -y +RUN DEBIAN_FRONTEND=noninteractive apt-get install unzip -y + +RUN DEBIAN_FRONTEND=noninteractive apt-get install python3-pip python3-dev build-essential -y +RUN ln -s /usr/bin/python3 /usr/bin/python +RUN ln -s /usr/bin/pip3 /usr/bin/pip + +COPY requirements /home/run/requirements +RUN DEBIAN_FRONTEND=noninteractive pip install -r requirements + +COPY scripts /home/run/ + +COPY run.sh /home/run/run.sh + +ENTRYPOINT /home/run/run.sh + |