diff --git a/build/Dockerfile_app b/build/Dockerfile_app new file mode 100644 index 0000000..b004c93 --- /dev/null +++ b/build/Dockerfile_app @@ -0,0 +1,6 @@ +FROM registry.ngaiot.com/tools/cv4.10_np2.2:v2 +WORKDIR /app/ +COPY ./wuyuanbiaoba ./wuyuanbiaoba +RUN pyinstaller -F --name=wuyuan.app --python-option=O ./wuyuanbiaoba/app.py +COPY ./wuyuanbiaoba/config.json ./dist/ +CMD ["/app/dist/wuyuan.app"] \ No newline at end of file diff --git a/build/Dockerfile_base b/build/Dockerfile_base new file mode 100644 index 0000000..8a42c72 --- /dev/null +++ b/build/Dockerfile_base @@ -0,0 +1,4 @@ +FROM registry.ngaiot.com/tools/python:3.10.18 +RUN pip3 install opencv-python==4.10.0.84 -i https://mirrors.aliyun.com/pypi/simple/ +RUN pip3 install numpy==2.2.6 -i https://mirrors.aliyun.com/pypi/simple/ +RUN pip3 install pyinstaller==6.14.1 -i https://mirrors.aliyun.com/pypi/simple/