Remove db init from Dockerfile.

This commit is contained in:
2025-07-01 13:15:51 +02:00
committed by Jens Luedicke
parent 74c232f227
commit 807ebbd4fe

View File

@@ -32,8 +32,7 @@ RUN chmod 777 /data
# Expose the port the app runs on # Expose the port the app runs on
EXPOSE 5000 EXPOSE 5000
# Run database migrations on startup # Database will be created at runtime when /data volume is mounted
RUN python -c "from app import app, db; app.app_context().push(); db.create_all()"
# Command to run the application # Command to run the application
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"] CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]