# The docker file is built follwing heavily the instructions here: # https://medium.com/@benjamin.botto/opengl-and-cuda-applications-in-docker-af0eece000f1 FROM nvidia/cuda:9.2-devel-ubuntu18.04 # Dependencies for glvnd and X11. RUN apt-get update \ && apt-get install -y -qq --no-install-recommends \ libglvnd0 \ libgl1 \ libglx0 \ libegl1 \ libxext6 \ libx11-6 \ && rm -rf /var/lib/apt/lists/* # Env vars for the nvidia-container-runtime. ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute # Dependency for EGL RUN apt update && apt install -y cmake build-essential libgl1-mesa-dev freeglut3-dev libglfw3-dev libgles2-mesa-dev RUN mkdir /workspace/ && cd /workspace/ WORKDIR /workspace