forked from robocin/vss-vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (36 loc) · 965 Bytes
/
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
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
# for python3.8
RUN apt update && apt install -y tzdata software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt install -y python3.8 python3.8-dev python3.8-venv \
&& python3.8 -m venv /home/.env \
&& . /home/.env/bin/activate \
&& pip install opencv-python pybind11 scikit-build
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
build-essential \
pkg-config \
zip \
unzip \
v4l-utils \
libsfml-dev \
libopencv-dev \
freeglut3-dev \
libprotobuf-dev \
cmake \
python3 \
libpython3-dev \
python3-dev \
python3-pip
COPY . /opt/vss-vision
WORKDIR /opt/vss-vision
RUN . /home/.env/bin/activate \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& cd .. \
&& pip install -e .
WORKDIR /opt/vss-vision