diff --git a/Dockerfile b/Dockerfile
index 5be871d426c3ffb1ab72b31a4db72220eaa475b7..856278b0cd92b15eae1e515fb1b8a671f5de1f12 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -62,6 +62,9 @@ RUN apt-get update && apt-get install -y libhdf5-dev
 ### Install hepmc3 to avoid the own installation
 RUN apt-get update && apt-get install -y libhepmc3-dev
 
+### Install libegl-dev to detect graphics drivers in gmex
+RUN apt-get update && apt-get install -y libegl-dev
+
 ### Install xercesC
 RUN mkdir -p build_xercesC  && \
     cd build_xercesC && \