Browse Source

add Dockerfile_app

master
lucas 2 weeks ago
parent
commit
aff43fb1e1
  1. 6
      build/Dockerfile_app
  2. 4
      build/Dockerfile_base

6
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"]

4
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/
Loading…
Cancel
Save