From 6633c2aac5e6a14836f542faab4b67a7b3784c75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Mon, 1 May 2023 23:40:13 +0200
Subject: [PATCH] add sync to dockerfile

---
 Dockerfile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 6985c0d..49de279 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"]
-- 
GitLab