move primary script into the module

This commit is contained in:
Blake Blackshear 2020-10-31 07:04:32 -05:00
parent 5512bb2e06
commit cce82fe2a5
3 changed files with 11 additions and 4 deletions

View File

@ -37,8 +37,5 @@ RUN mkdir /cache /clips
WORKDIR /opt/frigate/ WORKDIR /opt/frigate/
ADD frigate 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"]

View File

View File

@ -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 faulthandler; faulthandler.enable()
import os import os
import signal import signal