-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
49 lines (40 loc) · 1.36 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ARG UBUNTU_VERSION=18.04
FROM ubuntu:${UBUNTU_VERSION} AS base
MAINTAINER Qian Qian ([email protected])
ENV LANG C.UTF-8
RUN apt-get update && apt-get install -y \
python3.7 \
python3-pip
RUN ln -s $(which python3.7) /usr/local/bin/python3
RUN ln -s $(which python3.7) /usr/local/bin/python
RUN python3 -m pip --no-cache-dir install --upgrade \
"pip<20.3" \
setuptools
RUN apt-get update
RUN apt-get install -y \
build-essential \
curl \
git \
wget \
openjdk-8-jdk \
python3-dev \
virtualenv \
swig
RUN apt-get update
RUN apt-get install -y \
ffmpeg
RUN apt install -y libgl1-mesa-glx protobuf-compiler
RUN python3 -m pip install --no-cache-dir matplotlib videoio opencv-python
RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN apt-get update
RUN apt-get install -y libedgetpu1-std
RUN apt-get install -y python3-pycoral
RUN apt-get install -y python3-tflite-runtime
ADD requirements.txt /tmp/requirements.txt
RUN python3 -m pip install --no-cache-dir -r /tmp/requirements.txt
RUN python3 -m pip install --no-cache-dir opencv-contrib-python==4.4.0.46
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
RUN apt-get install -y python3-tk
EXPOSE 5005