Skip to content

Instantly share code, notes, and snippets.

@dulldesk
Last active March 12, 2024 20:19
Show Gist options
  • Save dulldesk/95c35bfc5bfc2d02ef31b4c10a395403 to your computer and use it in GitHub Desktop.
Save dulldesk/95c35bfc5bfc2d02ef31b4c10a395403 to your computer and use it in GitHub Desktop.
docker x11 c++

build:

docker build . -t fooey

run:

docker run -it --rm -e DISPLAY=10.0.0.231:0.0 fooey

private ip: ipconfig | findstr /R "IPv4.*[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"

for personal use; not liable

FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y cmake && \
apt-get install -y make && \
apt-get install -y g++-11 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11 && \
apt-get install -y git && \
apt-get install -y wget && \
apt-get install -y unzip
RUN apt-get install -y libx11-dev
WORKDIR /src
COPY . /src
RUN make
ENTRYPOINT ["./exec"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment