docker-compose build
docker-compose run main
version: "3.7" | |
services: | |
main: | |
build: . | |
environment: | |
- DISPLAY=:0 | |
volumes: | |
- /tmp/.X11-unix:/tmp/.X11-unix |
FROM ubuntu:18.04 | |
RUN apt update && apt install -y software-properties-common | |
RUN add-apt-repository ppa:deadsnakes/ppa | |
RUN apt update | |
RUN apt install -y python3.8 curl python3-distutils python3-apt libgl1-mesa-glx libpulse-dev libxcb-xinerama0 libfontconfig libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 libxcb-xkb1 libxkbcommon-x11-0 | |
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
RUN python3.8 get-pip.py | |
RUN python3.8 -m pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai-gui | |
CMD depthai-gui |