-
Notifications
You must be signed in to change notification settings - Fork 10
/
amd64-usbtpu.Dockerfile
21 lines (13 loc) · 1.07 KB
/
amd64-usbtpu.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# docker can be installed on the dev board following these instructions:
# https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-repository , step 4: x86_64 / amd64
# 1) build: docker build -f Dockerfile-amd64-usbtpu -t "neuralet/amd64:applications-smart-distancing" .
# 2) run: docker run -it --privileged -p HOST_PORT:8000 -v /PATH_TO_CLONED_REPO_ROOT/:/repo neuralet/amd64:applications-smart-distancing
FROM amd64/debian:buster
VOLUME /repo
RUN apt-get update && apt-get install -y wget gnupg usbutils
RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
RUN wget -qO - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN apt-get update && apt-get install -y python3-pip pkg-config libedgetpu1-std python3-wget python3-opencv python3-pillow edgetpu-compiler
RUN python3 -m pip install https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl protobuf
RUN apt-get update && apt-get install -y python3-edgetpu zip vim
WORKDIR /repo/