docker file optimize 03/4203/1
authorkhemendra kumar <khemendra.kumar@huawei.com>
Thu, 1 Apr 2021 06:44:41 +0000 (12:14 +0530)
committerkhemendra kumar <khemendra.kumar@huawei.com>
Thu, 1 Apr 2021 06:44:41 +0000 (12:14 +0530)
Signed-off-by: khemendra kumar <khemendra.kumar@huawei.com>
Change-Id: If8725830bd1d12ba9e802c19307618b2791eb669

example-apps/PDD/pcb-defect-detection/Dockerfile
example-apps/PDD/pcb-defect-detection/requirements.txt
example-apps/PDD/pcb-defect-detection/requirements_1.txt [deleted file]

index 8c4b018..09c2ad1 100644 (file)
@@ -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
 
index 99df291..9d2ca76 100644 (file)
@@ -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 (file)
index 32aa95e..0000000
+++ /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