Initial containerized Frigate camera control bridge
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
ARG BASE_IMAGE=python:3.11-slim
|
||||
FROM ${BASE_IMAGE}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV LOCALE_DIR=/app/locale
|
||||
ENV HTTP_PORT=5011
|
||||
ENV UI_LANGUAGE=en
|
||||
|
||||
COPY frigate-camera-control-bridge.py /app/frigate-camera-control-bridge.py
|
||||
COPY locale /app/locale
|
||||
COPY tools/compile_gettext.py /app/tools/compile_gettext.py
|
||||
|
||||
RUN python3 /app/tools/compile_gettext.py /app/locale
|
||||
|
||||
EXPOSE 5011
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 CMD python3 -c "import os,urllib.request; urllib.request.urlopen('http://127.0.0.1:%s/readyz' % os.environ.get('HTTP_PORT', '5011'), timeout=3).read()"
|
||||
|
||||
ENTRYPOINT ["python3", "/app/frigate-camera-control-bridge.py"]
|
||||
Reference in New Issue
Block a user