forked from openvinotoolkit/openvino_contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.RPi32_buster
89 lines (81 loc) · 2.2 KB
/
Dockerfile.RPi32_buster
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#This Dockerfile is for x86 and should be used for OpenVINO ARM plugin cross-compilation
#https://github.com/openvinotoolkit/openvino_contrib/tree/master/modules/arm_plugin#how-to-build
FROM debian:10
ENV DEBIAN_FRONTEND noninteractive
ENV PAKAGE_UPDATES_OF 20210505
#Prerequisite installation
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y --no-install-recommends \
ca-certificates \
lsb-release \
nano \
wget \
curl \
nano \
tar \
bzip2 \
unzip \
cpio \
cifs-utils \
locales \
rsync \
apt-transport-https \
debian-archive-keyring \
sudo \
openssh-client \
default-jre \
p7zip-full \
software-properties-common \
dirmngr \
gnupg \
netcat-openbsd \
dh-autoreconf \
libcurl4-gnutls-dev \
libexpat1-dev \
gettext \
libz-dev \
libssl-dev \
build-essential \
git-lfs \
cmake \
&& \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*
RUN dpkg --add-architecture armhf && \
apt-get update && \
apt-get install -y --no-install-recommends -f -o Dpkg::Options::="--force-confnew" \
build-essential \
libusb-1.0-0-dev:armhf \
software-properties-common \
crossbuild-essential-armhf \
zlib1g-dev \
libffi-dev \
libssl-dev \
chrpath \
libssl-dev \
libprotobuf-dev \
libprotoc-dev \
protobuf-compiler \
python3-dev \
python3-numpy \
python3-pip \
libpython3-dev:armhf \
libgtk-3-dev:armhf \
libavcodec-dev:armhf \
libavformat-dev:armhf \
libswscale-dev:armhf \
# For ARM CPU plugin
scons \
&& \
pip3 install cython && \
rm -rf /var/lib/apt/lists/*
RUN git config --global user.name "Your Name" && \
git config --global user.email "[email protected]"
ENV ARCH_NAME arm-linux-gnueabihf
ENV TOOLCHAIN_DEFS arm.toolchain.cmake
COPY armplg_build.sh /armplg_build.sh
#configure paths
RUN mkdir -p /armcpu_plugin
WORKDIR /armcpu_plugin/
CMD ["sh", "/armplg_build.sh"]