From cd439d6f1619ce3c227a41c85a99eaf5be1aab54 Mon Sep 17 00:00:00 2001 From: khemendra kumar Date: Thu, 1 Apr 2021 12:14:41 +0530 Subject: [PATCH] docker file optimize Signed-off-by: khemendra kumar Change-Id: If8725830bd1d12ba9e802c19307618b2791eb669 --- example-apps/PDD/pcb-defect-detection/Dockerfile | 7 ++----- example-apps/PDD/pcb-defect-detection/requirements.txt | 3 ++- .../PDD/pcb-defect-detection/requirements_1.txt | 17 ----------------- 3 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 example-apps/PDD/pcb-defect-detection/requirements_1.txt diff --git a/example-apps/PDD/pcb-defect-detection/Dockerfile b/example-apps/PDD/pcb-defect-detection/Dockerfile index 8c4b018..09c2ad1 100644 --- a/example-apps/PDD/pcb-defect-detection/Dockerfile +++ b/example-apps/PDD/pcb-defect-detection/Dockerfile @@ -103,18 +103,14 @@ RUN apt-get install -y --fix-missing \ WORKDIR $APP_HOME # Copy the application & scripts -COPY config.py requirements.txt run.py $APP_HOME/ +COPY requirements.txt $APP_HOME/ # Install requirements RUN pip install -r requirements.txt -# Install requirements -RUN pip install Pillow - COPY data $APP_HOME/data/ COPY help_utils $APP_HOME/help_utils/ COPY libs $APP_HOME/libs/ COPY output $APP_HOME/output/ -COPY results $APP_HOME/results/ COPY tools $APP_HOME/tools/ COPY input_image/1 $APP_HOME/input_image/beijinglab/camera1 COPY input_image/2 $APP_HOME/input_image/shenzhenlab/camera1 @@ -126,6 +122,7 @@ COPY input_image/7 $APP_HOME/input_image/shenzhenlab/camera3 COPY input_image/8 $APP_HOME/input_image/shanghailab/camera2 COPY input_image/9 $APP_HOME/input_image/shanghailab/camera3 +COPY config.py run.py $APP_HOME/ COPY configs/start.sh $APP_HOME/bin diff --git a/example-apps/PDD/pcb-defect-detection/requirements.txt b/example-apps/PDD/pcb-defect-detection/requirements.txt index 99df291..9d2ca76 100644 --- a/example-apps/PDD/pcb-defect-detection/requirements.txt +++ b/example-apps/PDD/pcb-defect-detection/requirements.txt @@ -22,4 +22,5 @@ flask_cors numpy Wand tensorflow-plot -tensorflow~=1.12 \ No newline at end of file +tensorflow~=1.12 +Pillow \ No newline at end of file diff --git a/example-apps/PDD/pcb-defect-detection/requirements_1.txt b/example-apps/PDD/pcb-defect-detection/requirements_1.txt deleted file mode 100644 index 32aa95e..0000000 --- a/example-apps/PDD/pcb-defect-detection/requirements_1.txt +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright 2020 Huawei Technologies Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -PIL \ No newline at end of file -- 2.16.6