From 807ebbd4fe826f743e473def5e32a9cc44a95544 Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Tue, 1 Jul 2025 13:15:51 +0200 Subject: [PATCH] Remove db init from Dockerfile. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb37edb..b844869 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,8 +32,7 @@ RUN chmod 777 /data # Expose the port the app runs on EXPOSE 5000 -# Run database migrations on startup -RUN python -c "from app import app, db; app.app_context().push(); db.create_all()" +# Database will be created at runtime when /data volume is mounted # Command to run the application CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"] \ No newline at end of file