-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
36 lines (25 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# FROM jjanzic/docker-python3-opencv:opencv-4.0.1
FROM diyer22/tiny_cv2:4.6.0-py38-ubuntu20.04
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 DEBIAN_FRONTEND=noninteractive TZ=Asia/Shanghai
RUN apt update && \
apt install -y unzip wget make g++ iputils-ping net-tools iputils-ping traceroute
# https://github.com/schoolpost/PiDNG/issues/66#issuecomment-1378632756
RUN apt-get install -y python3-dev && \
pip install --no-cache-dir pidng && \
apt-get remove -y python3-dev && \
apt-get autoremove -y && \
apt-get clean
# RUN ln -sf `which python3` /usr/bin/python && ln -sf `which pip3` /usr/bin/pip
RUN pip install --no-cache-dir -U pip wheel setuptools
RUN pip install --no-cache-dir boxx process_raw
# V2.1.2_221208 == libMvCameraControl.so.3.2.2.1
RUN wget https://www.hikrobotics.com/cn2/source/support/software/MVS_STD_GML_V2.1.2_221208.zip \
&& unzip MVS_STD_GML_V2.1.2_221208.zip \
&& dpkg -i MVS-2.1.2_x86_64_20221208.deb \
&& rm MVS*.deb MVS*.gz MVS*.zip
ENV MVCAM_COMMON_RUNENV=/opt/MVS/lib LD_LIBRARY_PATH=/opt/MVS/lib/64:/opt/MVS/lib/32:$LD_LIBRARY_PATH PYTHONPATH=/hik_camera:$PYTHONPATH
COPY . /hik_camera
WORKDIR /hik_camera
RUN pip install --no-cache-dir -r requirements.txt
CMD python -m hik_camera.hik_camera
# docker build -t diyer22/hik_camera ./ && docker run --net=host -v /tmp:/tmp -it diyer22/hik_camera;