diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index 15869816a..130697b52 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -37,8 +37,5 @@ RUN mkdir /cache /clips WORKDIR /opt/frigate/ ADD frigate frigate/ -COPY detect_objects.py . -COPY benchmark.py . -COPY process_clip.py . -CMD ["python3", "-u", "detect_objects.py"] +CMD ["python3", "-u", "-m", "frigate"] diff --git a/frigate/__init__.py b/frigate/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/detect_objects.py b/frigate/__main__.py similarity index 98% rename from detect_objects.py rename to frigate/__main__.py index 46d68fd9f..7342b5e4c 100644 --- a/detect_objects.py +++ b/frigate/__main__.py @@ -1,3 +1,13 @@ +# load config +# init database +# connect to mqtt +# start detection processes +# start frame processor +# start camera processes +# start event processor +# start capture processes +# start web app + import faulthandler; faulthandler.enable() import os import signal