diff --git a/docker-compose/lofar-device-base/lofar-requirements.txt b/docker-compose/lofar-device-base/lofar-requirements.txt
index 3a215b1d98d9324b11a0ba2765f19a5e6d85a3ff..95ed439cd121c0dc72b0c9a1c69d409e0bacc57e 100644
--- a/docker-compose/lofar-device-base/lofar-requirements.txt
+++ b/docker-compose/lofar-device-base/lofar-requirements.txt
@@ -1,2 +1,2 @@
-# Do not put tangostationcontrol dependencies here
-astropy
+# Do not put tangostationcontrol dependencies here, only setup.py / __init__.py
+GitPython >= 3.1.24 # BSD
diff --git a/tangostationcontrol/requirements.txt b/tangostationcontrol/requirements.txt
index b1620255b5a45c9e3f653661e65de6732fd93a07..087bb148d057ef2e6d10f1727999932e4828c33a 100644
--- a/tangostationcontrol/requirements.txt
+++ b/tangostationcontrol/requirements.txt
@@ -5,7 +5,6 @@
 asyncua >= 0.9.90 # LGPLv3
 PyMySQL[rsa] >= 1.0.2 # MIT
 sqlalchemy >= 1.4.26 #MIT
-GitPython >= 3.1.24 # BSD
 snmp >= 0.1.7 # GPL3
 h5py >= 3.5.0 # BSD
 psutil >= 5.8.0 # BSD