Skip to content

Instantly share code, notes, and snippets.

@VanDavv
Created January 18, 2021 13:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VanDavv/62d1940f83fe2059f4734a5a7b40caf7 to your computer and use it in GitHub Desktop.
Save VanDavv/62d1940f83fe2059f4734a5a7b40caf7 to your computer and use it in GitHub Desktop.
Ubuntu18.04 installation of depthai-gui

Build

docker-compose build

Run

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment