|
@@ -23,14 +23,15 @@ RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
|
|
|
#RUN rm -r /bin
|
|
|
|
|
|
|
|
|
-# 复制公共库文件到 容器
|
|
|
-ADD LIB/BACKEND/ /LIB/BACKEND/
|
|
|
+
|
|
|
# 复制算法文件到 容器
|
|
|
-ARG ALGO_PATH=LIB/MIDDLE/AlgoTest/Algo1/V_1_0_0/
|
|
|
-ARG MAIN_PATH=LIB/MIDDLE/AlgoTest/Algo1/
|
|
|
+ARG ALGO_PATH=LIB/MIDDLE/AlgoTest/Algo1
|
|
|
+ARG ALGO_VERSION=V_1_0_0
|
|
|
|
|
|
-ADD ${ALGO_PATH} /${ALGO_PATH}
|
|
|
-ADD ${MAIN_PATH}/main.py /${MAIN_PATH}/main.py
|
|
|
-WORKDIR /${MAIN_PATH}
|
|
|
+# 复制公共库文件到 容器
|
|
|
+ADD LIB/BACKEND/ /LIB/BACKEND
|
|
|
+ADD ${ALGO_PATH}/${ALGO_VERSION}/ /${ALGO_VERSION}/
|
|
|
+ADD ${ALGO_PATH}/main.py /main.py
|
|
|
+WORKDIR /
|
|
|
|
|
|
CMD ["python", "main.py"]
|