i am trying to make a dockerfile to opencv social distance detection project as a requirement to school project
the problem that i had is to make docker run on GUI-based environment
somehow i managed to make it work on linux by adding the fellow line to the run command
-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro
the full command
sudo docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro social-distance-detection -y https://youtu.be/hTUyzF4v9KA
but it did not work on windows
which command should i add to docker run so it can run on windows ? and by any chance is there a way to make it even work without adding any extra line ?
there is the Dockerfile
FROM ubuntu:20.04
FROM python:3.8
LABEL maintainer="muhammed akyuzlu ***@gmail.com"
ADD Social-distance-detection.py /
ADD coco.names /
ADD yolov4.cfg /
ADD yolov4.weights /
RUN apt-get update \
&& apt-get install -y \
python3-pyqt5 \
build-essential \
cmake \
git \
wget \
unzip \
yasm \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libavformat-dev \
libpq-dev \
xserver-xephyr\
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -y \
&& apt-get install python3-pip -y \
&& pip install pafy \
&& pip install numpy \
&& pip install youtube-dl \
&& pip install numpy \
&& pip install opencv-python
ENTRYPOINT ["python","./Social-distance-detection.py"]
it is my first time with Docker so you could find some nonsense lines :)