diff --git a/Dockerfile b/Dockerfile
index cc5bee04185b98eb4fb21be0e8d533cc0557fea2..81644238ed042ce974ec50097e555b33902378d1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -253,7 +253,7 @@ RUN wget -q -O /WSRT_Measures.ztar \
     rm /WSRT_Measures.ztar
 
 # Some python stuff
-RUN python3 -m pip install h5py pandas pyyaml astropy matplotlib==3.5.2 scipy shapely bdsf ipython radio_beam scikit-learn
+RUN python3 -m pip install -U h5py pandas pyyaml astropy matplotlib==3.6.2 scipy shapely bdsf ipython radio_beam scikit-learn
 #    cd /src && \
 #   git clone https://github.com/lofar-astron/PyBDSF.git && \
 #  cd /src/PyBDSF && \