From 9d4c7d5f871e83212b139bfee10a3125b5bc618e Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Wed, 5 Nov 2025 13:41:29 +0100 Subject: [PATCH] Cleanup in Dockerfile --- Dockerfile | 5 ++++- test_sanity_check.py | 38 -------------------------------------- 2 files changed, 4 insertions(+), 39 deletions(-) delete mode 100644 test_sanity_check.py diff --git a/Dockerfile b/Dockerfile index 318de06..30105e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,10 @@ RUN rm -rf /app/Dockerfile* \ /app/k8s \ /app/data-loader \ /app/keys \ - /app/requirements.txt + /app/requirements.txt \ + /app/node_modules \ + /app/*.json \ + /app/test_*.py RUN python3 manage.py collectstatic CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"] diff --git a/test_sanity_check.py b/test_sanity_check.py deleted file mode 100644 index 72df591..0000000 --- a/test_sanity_check.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python -""" -Simple script to test Vorgaben sanity checking -""" -import os -import sys -import django - -# Setup Django -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'VorgabenUI.settings') -django.setup() - -from dokumente.utils import check_vorgabe_conflicts, format_conflict_report - - -def main(): - print("Running Vorgaben sanity check...") - print("=" * 50) - - # Check for conflicts - conflicts = check_vorgabe_conflicts() - - # Generate and display report - report = format_conflict_report(conflicts, verbose=True) - print(report) - - print("=" * 50) - - if conflicts: - print(f"\n⚠️ Found {len(conflicts)} conflicts that need attention!") - sys.exit(1) - else: - print("✅ All Vorgaben are valid!") - sys.exit(0) - - -if __name__ == "__main__": - main() \ No newline at end of file