diff --git a/Dockerfile b/Dockerfile
index 6985c0dd97f345f7008c931855866033f711fdbb..49de27913a41cd59587dec4fcab55372d3167431 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -52,6 +52,9 @@ USER app
 
 ENV DJANGO_SETTINGS_MODULE "registry.settings.production"
 
+# Only keep this once
+RUN python manage.py import_old_contracts https://github.com/pirati-web/smlouvy.pirati.cz.git gh-pages --settings=${DJANGO_SETTINGS_MODULE} --delete -v 3
+
 EXPOSE 8000
 
 CMD ["bash", "run.sh"]