-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcoral-dev-board.Dockerfile
More file actions
32 lines (19 loc) · 1.39 KB
/
coral-dev-board.Dockerfile
File metadata and controls
32 lines (19 loc) · 1.39 KB
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
FROM arm64v8/debian:buster
VOLUME /repo
RUN apt-get update && apt-get install -y wget gnupg \
&& rm /etc/apt/sources.list && rm -rf /var/lib/apt/lists \
&& wget -qO - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
COPY data/multistrap* /etc/apt/sources.list.d/
RUN apt-get update && apt-get install -y python3-pip pkg-config libedgetpu1-std
# Also if you needed tensorflow: python-dev python3-dev libhdf5-dev python3-h5py python3-scipy
# Also python3-opencv may be needed, but it brings lots of dependencies (even x11-common !)
RUN python3 -m pip install --upgrade pip==19.3.1 setuptools==41.0.0 && python3 -m pip install https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_aarch64.whl
#if you needed tensorflow: grpcio==1.26.0 keras==2.2.4 protobuf https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.0.0/tensorflow-2.0.0-cp37-none-linux_aarch64.whl
RUN apt-get install -y python3-wget
RUN apt-get install -y python3-flask python3-opencv python3-scipy python3-edgetpu git
RUN git clone \
https://github.com/google-coral/project-posenet.git && sed -i 's/sudo / /g' \
/project-posenet/install_requirements.sh && sh /project-posenet/install_requirements.sh
ENV PYTHONPATH=$PYTHONPATH:/project-posenet
WORKDIR /repo/applications/facemask
# Also if you use opencv: LD_PRELOAD="/usr/lib/aarch64-linux-gnu/libgomp.so.1.0.0"